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.00147/0.00147, allocations: 109.4 kB / 17.73 MB, free: 5.363 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.001625/0.001626, allocations: 188.1 kB / 18.66 MB, free: 4.441 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.662/1.662, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001319/0.001319, allocations: 59.91 kB / 328.5 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/0.1218, allocations: 46.61 MB / 375.1 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.005068/0.1269, allocations: 2.326 MB / 377.5 MB, free: 2.242 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001999/0.129, allocations: 0.7134 MB / 378.2 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002794/0.1293, allocations: 7.938 kB / 378.2 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002552/0.1296, allocations: 31.7 kB / 378.2 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002518/0.1299, allocations: 51.5 kB / 378.3 MB, free: 1.43 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000595/0.1305, allocations: 99.75 kB / 378.4 MB, free: 1.332 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006149/0.1311, allocations: 263 kB / 378.6 MB, free: 1.074 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003817/0.1315, allocations: 126.9 kB / 378.7 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003842/0.1319, allocations: 107.6 kB / 378.9 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003049/0.1322, allocations: 119.5 kB / 379 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.644e-05/0.1323, allocations: 20 kB / 379 MB, free: 0.707 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.431e-05/0.1324, allocations: 24 kB / 379 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.31e-05/0.1325, allocations: 59.77 kB / 379.1 MB, free: 0.625 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002092/0.1327, allocations: 111.5 kB / 379.2 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004875/0.1332, allocations: 287 kB / 379.5 MB, free: 240 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.746e-06/0.1332, allocations: 0 / 379.5 MB, free: 240 kB / 318.1 MB Notification: Performance of FrontEnd: time 3.517e-06/0.1332, allocations: 0 / 379.5 MB, free: 240 kB / 318.1 MB Notification: Performance of Transformations before backend: time 2.343e-05/0.1333, allocations: 4 kB / 379.5 MB, free: 236 kB / 318.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.239/0.3722, allocations: 0.6586 MB / 380.1 MB, free: 13.52 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.399e-05/0.3723, allocations: 10.56 kB / 380.1 MB, free: 13.52 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.304e-05/0.3724, allocations: 26.75 kB / 380.2 MB, free: 13.51 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003963/0.3728, allocations: 245.4 kB / 380.4 MB, free: 13.3 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.407e-05/0.3729, allocations: 49.33 kB / 380.4 MB, free: 13.27 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.22e-05/0.373, allocations: 18.5 kB / 380.5 MB, free: 13.27 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006926/0.3737, allocations: 260.5 kB / 380.7 MB, free: 13.21 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.3737, allocations: 3.938 kB / 380.7 MB, free: 13.21 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.931e-05/0.3737, allocations: 10.72 kB / 380.7 MB, free: 13.2 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.3737, allocations: 4.969 kB / 380.7 MB, free: 13.2 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004996/0.3742, allocations: 200.1 kB / 380.9 MB, free: 13.15 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00132/0.3756, allocations: 0.7447 MB / 381.7 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008326/0.3764, allocations: 306.7 kB / 382 MB, free: 12.55 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005209/0.377, allocations: 225.6 kB / 382.2 MB, free: 12.47 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.493e-05/0.377, allocations: 2.156 kB / 382.2 MB, free: 12.47 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005897/0.3776, allocations: 321.2 kB / 382.5 MB, free: 12.29 MB / 318.1 MB Notification: Performance of pre-optimization done (n=31): time 1.704e-06/0.3776, allocations: 0.5 kB / 382.5 MB, free: 12.29 MB / 318.1 MB Notification: Performance of matching and sorting (n=31): time 0.001233/0.3788, allocations: 0.5695 MB / 383.1 MB, free: 12.06 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/0.379, allocations: 207.2 kB / 383.3 MB, free: 11.84 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00018/0.3791, allocations: 183.7 kB / 383.5 MB, free: 11.71 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.069e-05/0.3792, allocations: 36.2 kB / 383.5 MB, free: 11.67 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.184e-05/0.3793, allocations: 137.8 kB / 383.6 MB, free: 11.55 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.251e-05/0.3793, allocations: 77.25 kB / 383.7 MB, free: 11.5 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001054/0.3795, allocations: 69.3 kB / 383.8 MB, free: 11.45 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.179e-05/0.3795, allocations: 334.7 kB / 384.1 MB, free: 11.13 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002405/0.3798, allocations: 109.4 kB / 384.2 MB, free: 11.1 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000279/0.3801, allocations: 178 kB / 384.4 MB, free: 11 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005183/0.3806, allocations: 411.8 kB / 384.8 MB, free: 10.71 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.3806, allocations: 1.312 kB / 384.8 MB, free: 10.71 MB / 318.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006757/0.3813, allocations: 447.2 kB / 385.2 MB, free: 10.48 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.127e-05/0.3814, allocations: 91.73 kB / 385.3 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.627e-06/0.3814, allocations: 3.375 kB / 385.3 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.969e-05/0.3814, allocations: 7.5 kB / 385.3 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001886/0.3816, allocations: 40.33 kB / 385.4 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/0.3816, allocations: 2.438 kB / 385.4 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001711/0.3818, allocations: 37.89 kB / 385.4 MB, free: 10.35 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.619e-05/0.3818, allocations: 17.5 kB / 385.4 MB, free: 10.35 MB / 318.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.0002389/0.3821, allocations: 237.3 kB / 385.7 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.024e-05/0.3821, allocations: 22.66 kB / 385.7 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.999e-05/0.3822, allocations: 28.17 kB / 385.7 MB, free: 10.11 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.842e-06/0.3822, allocations: 8.875 kB / 385.7 MB, free: 10.11 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.668e-06/0.3822, allocations: 1.672 kB / 385.7 MB, free: 10.11 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.3823, allocations: 0.75 kB / 385.7 MB, free: 10.11 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001563/0.3838, allocations: 0.9314 MB / 386.6 MB, free: 9.555 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.429e-06/0.3838, allocations: 5.188 kB / 386.7 MB, free: 9.551 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001182/0.384, allocations: 27.66 kB / 386.7 MB, free: 9.543 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.95e-06/0.384, allocations: 1.719 kB / 386.7 MB, free: 9.543 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.225e-05/0.384, allocations: 7.391 kB / 386.7 MB, free: 9.543 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.384, allocations: 5.219 kB / 386.7 MB, free: 9.539 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.384, allocations: 1.625 kB / 386.7 MB, free: 9.539 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001119/0.3852, allocations: 0.6119 MB / 387.3 MB, free: 9.207 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.99e-05/0.3852, allocations: 104.4 kB / 387.4 MB, free: 9.094 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.477e-05/0.3853, allocations: 16.45 kB / 387.4 MB, free: 9.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002132/0.3855, allocations: 21.28 kB / 387.4 MB, free: 9.086 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/0.3856, allocations: 21.86 kB / 387.5 MB, free: 9.082 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.999e-05/0.3857, allocations: 13.52 kB / 387.5 MB, free: 9.078 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001217/0.3858, allocations: 128.4 kB / 387.6 MB, free: 8.988 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.3858, allocations: 1.219 kB / 387.6 MB, free: 8.988 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003659/0.3862, allocations: 74 kB / 387.7 MB, free: 8.977 MB / 318.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.0001685/0.3864, allocations: 133.6 kB / 387.8 MB, free: 8.875 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009583/0.3873, allocations: 0.541 MB / 388.4 MB, free: 8.578 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.3873, allocations: 0 / 388.4 MB, free: 8.578 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006116/0.388, allocations: 398 kB / 388.7 MB, free: 8.344 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007795/0.3887, allocations: 151.7 kB / 388.9 MB, free: 8.309 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009929/0.3897, allocations: 0.5295 MB / 389.4 MB, free: 8.02 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002211/0.39, allocations: 0.7484 MB / 390.2 MB, free: 7.316 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001479/0.3901, allocations: 59.14 kB / 390.2 MB, free: 7.309 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.974e-05/0.3902, allocations: 21.09 kB / 390.2 MB, free: 7.301 MB / 318.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3902, allocations: 0 / 390.2 MB, free: 7.301 MB / 318.1 MB Notification: Performance of Templates: time 0.01009/0.4003, allocations: 4.277 MB / 394.5 MB, free: 6.941 MB / 318.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/jenkins/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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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