Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.AD_DA_conversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.AD_DA_conversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|aD_Converter.z|pulse.T0|pulse.np",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.AD_DA_conversion") translateModel(Modelica.Electrical.Analog.Examples.AD_DA_conversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|aD_Converter.z|pulse.T0|pulse.np",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.AD_DA_conversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001508/0.001508, allocations: 118.6 kB / 18.45 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001926/0.001926, allocations: 207.6 kB / 19.41 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.426/1.426, allocations: 227.7 MB / 247.9 MB, free: 10.16 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001876/0.001876, allocations: 63.89 kB / 359.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2308/0.2327, allocations: 50.54 MB / 410.2 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003649/0.2363, allocations: 2.38 MB / 412.6 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001333/0.2376, allocations: 0.7439 MB / 413.3 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.136e-05/0.2377, allocations: 4 kB / 413.3 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000149/0.2379, allocations: 35.64 kB / 413.4 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001106/0.238, allocations: 59.5 kB / 413.4 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003512/0.2383, allocations: 99.75 kB / 413.5 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003288/0.2387, allocations: 267 kB / 413.8 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000203/0.2389, allocations: 83.03 kB / 413.9 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002347/0.2391, allocations: 127.6 kB / 414 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000179/0.2393, allocations: 111.6 kB / 414.1 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.375e-05/0.2393, allocations: 24 kB / 414.1 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.352e-05/0.2394, allocations: 27.94 kB / 414.2 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.331e-05/0.2395, allocations: 55.78 kB / 414.2 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001399/0.2396, allocations: 123.4 kB / 414.3 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003785/0.24, allocations: 290.7 kB / 414.6 MB, free: 13.03 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.24, allocations: 0 / 414.6 MB, free: 13.03 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.24, allocations: 0 / 414.6 MB, free: 13.03 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.041e-05/0.24, allocations: 0 / 414.6 MB, free: 13.03 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001074/0.2411, allocations: 0.6754 MB / 415.3 MB, free: 12.29 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.044e-05/0.2411, allocations: 8.031 kB / 415.3 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001715/0.2413, allocations: 40.73 kB / 415.3 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003467/0.2416, allocations: 251.9 kB / 415.6 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.732e-05/0.2417, allocations: 54.05 kB / 415.6 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.161e-05/0.2417, allocations: 20.38 kB / 415.7 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005626/0.2423, allocations: 256.3 kB / 415.9 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.2423, allocations: 0 / 415.9 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.761e-05/0.2423, allocations: 8 kB / 415.9 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.2423, allocations: 4 kB / 415.9 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004983/0.2428, allocations: 208.2 kB / 416.1 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001337/0.2442, allocations: 0.7603 MB / 416.9 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005746/0.2447, allocations: 255.2 kB / 417.1 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004109/0.2452, allocations: 193 kB / 417.3 MB, free: 10.13 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.2452, allocations: 4 kB / 417.3 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005215/0.2457, allocations: 319.5 kB / 417.6 MB, free: 9.785 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.412e-06/0.2457, allocations: 0 / 417.6 MB, free: 9.785 MB / 334.1 MB Notification: Performance of matching and sorting (n=31): time 0.001212/0.2469, allocations: 0.575 MB / 418.2 MB, free: 9.191 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001302/0.247, allocations: 207.9 kB / 418.4 MB, free: 8.945 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001753/0.2472, allocations: 184.2 kB / 418.6 MB, free: 8.754 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.961e-05/0.2473, allocations: 45.7 kB / 418.6 MB, free: 8.703 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.569e-05/0.2474, allocations: 128.9 kB / 418.8 MB, free: 8.57 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.167e-05/0.2474, allocations: 91.25 kB / 418.9 MB, free: 8.48 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.982e-05/0.2475, allocations: 62.03 kB / 418.9 MB, free: 8.414 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.2477, allocations: 338.8 kB / 419.2 MB, free: 8.074 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002472/0.2479, allocations: 112.6 kB / 419.4 MB, free: 7.961 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002921/0.2482, allocations: 171.3 kB / 419.5 MB, free: 7.773 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005706/0.2488, allocations: 413.4 kB / 419.9 MB, free: 7.32 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.2488, allocations: 0 / 419.9 MB, free: 7.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.000721/0.2495, allocations: 445.8 kB / 420.4 MB, free: 6.863 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.021e-05/0.2496, allocations: 93.09 kB / 420.5 MB, free: 6.754 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.2496, allocations: 7.938 kB / 420.5 MB, free: 6.746 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.2496, allocations: 4 kB / 420.5 MB, free: 6.742 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001755/0.2498, allocations: 35.91 kB / 420.5 MB, free: 6.707 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.165e-05/0.2498, allocations: 7.938 kB / 420.5 MB, free: 6.699 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001799/0.25, allocations: 39.83 kB / 420.5 MB, free: 6.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.538e-05/0.25, allocations: 8 kB / 420.6 MB, free: 6.652 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 36 (dA_Converter.y,$PRE.dA_Converter.y,aD_Converter.z,$PRE.aD_Converter.z,dA_Converter.x[7],dA_Converter.x[6],dA_Converter.x[5],dA_Converter.x[4],dA_Converter.x[3],dA_Converter.x[2],dA_Converter.x[1],aD_Converter.y[7],$PRE.aD_Converter.y[7],aD_Converter.y[6],$PRE.aD_Converter.y[6],aD_Converter.y[5],$PRE.aD_Converter.y[5],aD_Converter.y[4],$PRE.aD_Converter.y[4],aD_Converter.y[3],$PRE.aD_Converter.y[3],aD_Converter.y[2],$PRE.aD_Converter.y[2],aD_Converter.y[1],$PRE.aD_Converter.y[1],dA_Converter.trig,pulse.sampling,pulse.np,$PRE.pulse.np,pulse.T0,$PRE.pulse.T0,$whenCondition2,$whenCondition1,$whenCondition3,dA_Converter.vout,$PRE.dA_Converter.vout) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002367/0.2502, allocations: 243.7 kB / 420.8 MB, free: 6.395 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.764e-05/0.2503, allocations: 27.86 kB / 420.8 MB, free: 6.367 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.387e-05/0.2503, allocations: 26.59 kB / 420.8 MB, free: 6.344 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-06/0.2503, allocations: 0 / 420.8 MB, free: 6.344 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.2504, allocations: 0 / 420.8 MB, free: 6.344 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.2504, allocations: 7.984 kB / 420.9 MB, free: 6.336 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001472/0.2518, allocations: 0.9357 MB / 421.8 MB, free: 5.328 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.2518, allocations: 0 / 421.8 MB, free: 5.328 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001133/0.2519, allocations: 23.92 kB / 421.8 MB, free: 5.305 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.2519, allocations: 4.031 kB / 421.8 MB, free: 5.301 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.674e-05/0.252, allocations: 12 kB / 421.8 MB, free: 5.289 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.42e-06/0.252, allocations: 3.984 kB / 421.8 MB, free: 5.285 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.252, allocations: 0 / 421.8 MB, free: 5.285 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009728/0.253, allocations: 0.6198 MB / 422.5 MB, free: 4.637 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.418e-05/0.253, allocations: 100.8 kB / 422.6 MB, free: 4.52 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.519e-05/0.2531, allocations: 16.17 kB / 422.6 MB, free: 4.504 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002136/0.2533, allocations: 23.98 kB / 422.6 MB, free: 4.48 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.78e-05/0.2534, allocations: 27.84 kB / 422.6 MB, free: 4.453 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.993e-05/0.2534, allocations: 15.97 kB / 422.6 MB, free: 4.438 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001166/0.2535, allocations: 139.2 kB / 422.8 MB, free: 4.301 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2535, allocations: 0 / 422.8 MB, free: 4.301 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003372/0.2539, allocations: 72 kB / 422.8 MB, free: 4.23 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition3,$whenCondition1,$whenCondition2,aD_Converter.y[1],aD_Converter.y[2],aD_Converter.y[3],aD_Converter.y[4],aD_Converter.y[5],aD_Converter.y[6],aD_Converter.y[7],aD_Converter.z,pulse.T0,pulse.np,pulse.sampling,dA_Converter.trig,dA_Converter.x[1],dA_Converter.x[2],dA_Converter.x[3],dA_Converter.x[4],dA_Converter.x[5],dA_Converter.x[6],dA_Converter.x[7],dA_Converter.vout,dA_Converter.y) * Number of discrete states: 13 (pulse.np,aD_Converter.y[7],aD_Converter.y[6],aD_Converter.y[5],aD_Converter.y[4],aD_Converter.y[3],aD_Converter.y[2],aD_Converter.y[1],aD_Converter.z,$whenCondition1,dA_Converter.vout,dA_Converter.y,$whenCondition2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001847/0.254, allocations: 137 kB / 423 MB, free: 4.09 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009286/0.255, allocations: 0.5135 MB / 423.5 MB, free: 3.539 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.255, allocations: 0 / 423.5 MB, free: 3.539 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004709/0.2554, allocations: 318.5 kB / 423.8 MB, free: 3.203 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007085/0.2562, allocations: 144.7 kB / 423.9 MB, free: 3.07 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001028/0.2572, allocations: 0.5284 MB / 424.5 MB, free: 2.508 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003734/0.2576, allocations: 0.7523 MB / 425.2 MB, free: 1.727 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001488/0.2577, allocations: 49.89 kB / 425.3 MB, free: 1.676 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.657e-05/0.2578, allocations: 19.44 kB / 425.3 MB, free: 1.656 MB / 334.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2578, allocations: 4 kB / 425.3 MB, free: 1.652 MB / 334.1 MB Notification: Performance of Templates: time 0.008671/0.2664, allocations: 4.292 MB / 429.6 MB, free: 13.41 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.AD_DA_conversion -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/AD_DA_conversion/AD_DA_conversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.AD_DA_conversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches