Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00117/0.001169, allocations: 108.7 kB / 17.93 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00124/0.001241, allocations: 189.8 kB / 18.86 MB, free: 4.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.399/1.399, allocations: 205.1 MB / 224.7 MB, free: 12.45 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001334/0.001334, allocations: 47.92 kB / 280.8 MB, free: 3.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1035, allocations: 46.63 MB / 327.4 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.004556/0.1081, allocations: 2.384 MB / 329.8 MB, free: 2.391 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001575/0.1097, allocations: 0.6982 MB / 330.5 MB, free: 1.684 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002142/0.1099, allocations: 7.938 kB / 330.5 MB, free: 1.676 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001956/0.1102, allocations: 19.84 kB / 330.5 MB, free: 1.656 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001674/0.1104, allocations: 51.61 kB / 330.6 MB, free: 1.605 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004315/0.1108, allocations: 75.86 kB / 330.7 MB, free: 1.531 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004119/0.1112, allocations: 263 kB / 330.9 MB, free: 1.273 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002588/0.1115, allocations: 119 kB / 331 MB, free: 1.156 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002749/0.1118, allocations: 111.6 kB / 331.1 MB, free: 1.047 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002088/0.112, allocations: 119.5 kB / 331.3 MB, free: 0.9297 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.289e-05/0.1121, allocations: 20 kB / 331.3 MB, free: 0.9102 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.42e-05/0.1121, allocations: 24 kB / 331.3 MB, free: 0.8867 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.167e-05/0.1122, allocations: 51.78 kB / 331.4 MB, free: 0.8359 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000135/0.1123, allocations: 127.4 kB / 331.5 MB, free: 0.7109 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002695/0.1126, allocations: 211.8 kB / 331.7 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.1126, allocations: 0 / 331.7 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.1126, allocations: 0 / 331.7 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.219e-05/0.1127, allocations: 0 / 331.7 MB, free: 0.5039 MB / 270.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.00119/0.1139, allocations: 0.6715 MB / 332.4 MB, free: 15.76 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.1139, allocations: 8.031 kB / 332.4 MB, free: 15.75 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.264e-05/0.114, allocations: 28.66 kB / 332.4 MB, free: 15.73 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003218/0.1143, allocations: 240.6 kB / 332.6 MB, free: 15.45 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.252e-05/0.1144, allocations: 62.17 kB / 332.7 MB, free: 15.39 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.633e-05/0.1145, allocations: 16.38 kB / 332.7 MB, free: 15.37 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006796/0.1152, allocations: 256.3 kB / 333 MB, free: 15.12 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.1152, allocations: 4 kB / 333 MB, free: 15.11 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.945e-05/0.1152, allocations: 11.98 kB / 333 MB, free: 15.1 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.625e-06/0.1152, allocations: 4 kB / 333 MB, free: 15.1 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005397/0.1158, allocations: 200.3 kB / 333.2 MB, free: 14.9 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001479/0.1173, allocations: 0.76 MB / 333.9 MB, free: 14.08 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005858/0.1179, allocations: 295.2 kB / 334.2 MB, free: 13.78 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004265/0.1183, allocations: 228.9 kB / 334.4 MB, free: 13.55 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.448e-05/0.1183, allocations: 4 kB / 334.4 MB, free: 13.55 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005218/0.1189, allocations: 308.3 kB / 334.7 MB, free: 13.22 MB / 286.1 MB Notification: Performance of pre-optimization done (n=31): time 2.435e-06/0.1189, allocations: 0 / 334.7 MB, free: 13.22 MB / 286.1 MB Notification: Performance of matching and sorting (n=31): time 0.001223/0.1201, allocations: 0.5746 MB / 335.3 MB, free: 12.62 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002035/0.1203, allocations: 207.9 kB / 335.5 MB, free: 12.38 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001921/0.1205, allocations: 179.2 kB / 335.7 MB, free: 12.2 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.066e-05/0.1206, allocations: 41.7 kB / 335.7 MB, free: 12.15 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/0.1207, allocations: 132.7 kB / 335.9 MB, free: 12.02 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.094e-05/0.1208, allocations: 71.11 kB / 335.9 MB, free: 11.95 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001064/0.1209, allocations: 66.02 kB / 336 MB, free: 11.88 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.1211, allocations: 338.8 kB / 336.3 MB, free: 11.54 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002534/0.1213, allocations: 104.6 kB / 336.4 MB, free: 11.43 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000287/0.1216, allocations: 179 kB / 336.6 MB, free: 11.23 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005846/0.1222, allocations: 421.5 kB / 337 MB, free: 10.77 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.1222, allocations: 0 / 337 MB, free: 10.77 MB / 286.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007459/0.123, allocations: 442.2 kB / 337.5 MB, free: 10.32 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.961e-05/0.1231, allocations: 97.09 kB / 337.6 MB, free: 10.2 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/0.1231, allocations: 7.938 kB / 337.6 MB, free: 10.2 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/0.1231, allocations: 0 / 337.6 MB, free: 10.2 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002113/0.1233, allocations: 39.91 kB / 337.6 MB, free: 10.16 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.868e-06/0.1234, allocations: 4 kB / 337.6 MB, free: 10.15 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002124/0.1236, allocations: 35.73 kB / 337.6 MB, free: 10.12 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.458e-05/0.1236, allocations: 16.03 kB / 337.7 MB, free: 10.1 MB / 286.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.0002657/0.1239, allocations: 235.8 kB / 337.9 MB, free: 9.848 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.348e-05/0.1239, allocations: 27.91 kB / 337.9 MB, free: 9.82 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.649e-05/0.124, allocations: 26.59 kB / 337.9 MB, free: 9.793 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.124, allocations: 3.938 kB / 337.9 MB, free: 9.789 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.124, allocations: 0 / 337.9 MB, free: 9.789 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.124, allocations: 3.984 kB / 337.9 MB, free: 9.785 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001611/0.1257, allocations: 0.9357 MB / 338.9 MB, free: 8.777 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.1257, allocations: 0 / 338.9 MB, free: 8.777 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001162/0.1258, allocations: 23.98 kB / 338.9 MB, free: 8.754 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.1258, allocations: 0 / 338.9 MB, free: 8.754 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.284e-05/0.1258, allocations: 12 kB / 338.9 MB, free: 8.742 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.524e-06/0.1259, allocations: 0 / 338.9 MB, free: 8.742 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.1259, allocations: 0 / 338.9 MB, free: 8.742 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009619/0.1268, allocations: 0.6213 MB / 339.5 MB, free: 8.09 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.813e-05/0.1269, allocations: 92.86 kB / 339.6 MB, free: 7.98 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.53e-05/0.127, allocations: 19.98 kB / 339.6 MB, free: 7.961 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00024/0.1272, allocations: 27.98 kB / 339.7 MB, free: 7.934 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.659e-05/0.1274, allocations: 27.91 kB / 339.7 MB, free: 7.906 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.878e-05/0.1274, allocations: 11.98 kB / 339.7 MB, free: 7.895 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001205/0.1275, allocations: 131.2 kB / 339.8 MB, free: 7.766 MB / 286.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1275, allocations: 0 / 339.8 MB, free: 7.766 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003789/0.1279, allocations: 79.84 kB / 339.9 MB, free: 7.688 MB / 286.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.0002323/0.1281, allocations: 132.9 kB / 340 MB, free: 7.543 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009346/0.1291, allocations: 0.5682 MB / 340.6 MB, free: 6.938 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.1291, allocations: 0 / 340.6 MB, free: 6.938 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005153/0.1296, allocations: 398.9 kB / 341 MB, free: 6.523 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007155/0.1304, allocations: 145 kB / 341.1 MB, free: 6.383 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001155/0.1315, allocations: 0.6326 MB / 341.8 MB, free: 5.719 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003791/0.1319, allocations: 0.7484 MB / 342.5 MB, free: 4.945 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.983e-05/0.132, allocations: 19.44 kB / 342.5 MB, free: 4.926 MB / 286.1 MB Notification: Performance of SimCode: time 4.91e-07/0.132, allocations: 0 / 342.5 MB, free: 4.926 MB / 286.1 MB Notification: Performance of Templates: time 0.006303/0.1383, allocations: 3.095 MB / 345.6 MB, free: 1.84 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/AD_DA_conversion/AD_DA_conversion.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches