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.001331/0.001331, allocations: 109.3 kB / 18.4 MB, free: 4.699 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.001293/0.001293, allocations: 189.2 kB / 19.33 MB, free: 3.781 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.458/1.458, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.001401/0.001401, allocations: 48.39 kB / 329.2 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.112, allocations: 46.62 MB / 375.8 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.004617/0.1167, allocations: 2.327 MB / 378.1 MB, free: 2.234 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001628/0.1184, allocations: 0.7212 MB / 378.9 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000213/0.1186, allocations: 0 / 378.9 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000221/0.1189, allocations: 35.66 kB / 378.9 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001781/0.119, allocations: 55.48 kB / 379 MB, free: 1.414 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004508/0.1195, allocations: 91.77 kB / 379 MB, free: 1.324 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004728/0.12, allocations: 263 kB / 379.3 MB, free: 1.066 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002895/0.1203, allocations: 115 kB / 379.4 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003087/0.1206, allocations: 119.6 kB / 379.5 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002504/0.1209, allocations: 115.6 kB / 379.6 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.915e-05/0.1209, allocations: 27.94 kB / 379.7 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.393e-05/0.121, allocations: 20 kB / 379.7 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.636e-05/0.1211, allocations: 47.84 kB / 379.7 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001621/0.1212, allocations: 119.5 kB / 379.9 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004016/0.1217, allocations: 282.9 kB / 380.1 MB, free: 240 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.1217, allocations: 0 / 380.1 MB, free: 240 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.1217, allocations: 4 kB / 380.1 MB, free: 236 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.021e-05/0.1217, allocations: 0 / 380.1 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.2607/0.3824, allocations: 0.6601 MB / 380.8 MB, free: 12.98 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.967e-05/0.3825, allocations: 9.906 kB / 380.8 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001008/0.3826, allocations: 28.45 kB / 380.8 MB, free: 12.97 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004711/0.3831, allocations: 241.5 kB / 381.1 MB, free: 12.76 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.165e-05/0.3832, allocations: 49.97 kB / 381.1 MB, free: 12.73 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.244e-05/0.3832, allocations: 19.02 kB / 381.1 MB, free: 12.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007143/0.3839, allocations: 262.9 kB / 381.4 MB, free: 12.69 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.384, allocations: 3.938 kB / 381.4 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.191e-05/0.384, allocations: 5.969 kB / 381.4 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.296e-05/0.384, allocations: 7.938 kB / 381.4 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005687/0.3846, allocations: 201.5 kB / 381.6 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001585/0.3862, allocations: 0.7466 MB / 382.3 MB, free: 12.32 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007321/0.387, allocations: 305 kB / 382.6 MB, free: 12.28 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006076/0.3876, allocations: 224.6 kB / 382.9 MB, free: 12.26 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.931e-05/0.3876, allocations: 2.625 kB / 382.9 MB, free: 12.26 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000742/0.3884, allocations: 319.6 kB / 383.2 MB, free: 12.07 MB / 318.1 MB Notification: Performance of pre-optimization done (n=31): time 2.876e-06/0.3884, allocations: 7.672 kB / 383.2 MB, free: 12.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=31): time 0.001353/0.3898, allocations: 0.5686 MB / 383.8 MB, free: 11.84 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.184e-05/0.3899, allocations: 204.8 kB / 384 MB, free: 11.62 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000176/0.39, allocations: 183.6 kB / 384.1 MB, free: 11.49 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.054e-05/0.3901, allocations: 39.16 kB / 384.2 MB, free: 11.45 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.461e-05/0.3902, allocations: 133.2 kB / 384.3 MB, free: 11.34 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.806e-05/0.3902, allocations: 82.86 kB / 384.4 MB, free: 11.28 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.968e-05/0.3903, allocations: 64.05 kB / 384.4 MB, free: 11.24 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.434e-05/0.3904, allocations: 336.5 kB / 384.8 MB, free: 10.91 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002572/0.3907, allocations: 107.6 kB / 384.9 MB, free: 10.88 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002781/0.391, allocations: 180.8 kB / 385.1 MB, free: 10.79 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004923/0.3915, allocations: 413.3 kB / 385.5 MB, free: 10.5 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.3915, allocations: 1.812 kB / 385.5 MB, free: 10.5 MB / 318.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006911/0.3922, allocations: 444.4 kB / 385.9 MB, free: 10.26 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.22e-05/0.3923, allocations: 100.3 kB / 386 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.3923, allocations: 1.312 kB / 386 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.187e-05/0.3923, allocations: 7.703 kB / 386 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001865/0.3925, allocations: 37.8 kB / 386 MB, free: 10.15 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.133e-05/0.3925, allocations: 3.984 kB / 386 MB, free: 10.15 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001857/0.3927, allocations: 36.09 kB / 386.1 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.501e-05/0.3928, allocations: 16.31 kB / 386.1 MB, free: 10.13 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.0001948/0.393, allocations: 243.2 kB / 386.3 MB, free: 9.922 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.142e-05/0.393, allocations: 21.47 kB / 386.4 MB, free: 9.914 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.691e-05/0.3931, allocations: 25.84 kB / 386.4 MB, free: 9.898 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.3931, allocations: 5.344 kB / 386.4 MB, free: 9.895 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.3931, allocations: 1.625 kB / 386.4 MB, free: 9.895 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.3931, allocations: 0.8438 kB / 386.4 MB, free: 9.895 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001307/0.3944, allocations: 0.9372 MB / 387.3 MB, free: 9.332 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.3944, allocations: 5.25 kB / 387.3 MB, free: 9.328 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001084/0.3945, allocations: 20.31 kB / 387.4 MB, free: 9.328 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/0.3945, allocations: 1.25 kB / 387.4 MB, free: 9.328 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.787e-05/0.3946, allocations: 16.66 kB / 387.4 MB, free: 9.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.3946, allocations: 1.188 kB / 387.4 MB, free: 9.32 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3946, allocations: 0 / 387.4 MB, free: 9.32 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008697/0.3955, allocations: 0.6118 MB / 388 MB, free: 8.988 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.471e-05/0.3955, allocations: 100.9 kB / 388.1 MB, free: 8.879 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.289e-05/0.3956, allocations: 15.84 kB / 388.1 MB, free: 8.875 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002088/0.3958, allocations: 22.72 kB / 388.1 MB, free: 8.871 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.226e-05/0.3959, allocations: 21.05 kB / 388.1 MB, free: 8.867 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.282e-05/0.396, allocations: 13.25 kB / 388.2 MB, free: 8.863 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001016/0.3961, allocations: 129.5 kB / 388.3 MB, free: 8.773 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3961, allocations: 0 / 388.3 MB, free: 8.773 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003565/0.3964, allocations: 74.91 kB / 388.4 MB, free: 8.762 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.000161/0.3966, allocations: 136.3 kB / 388.5 MB, free: 8.656 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007983/0.3974, allocations: 0.536 MB / 389 MB, free: 8.363 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/0.3974, allocations: 1.688 kB / 389 MB, free: 8.363 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004609/0.3979, allocations: 397.8 kB / 389.4 MB, free: 8.129 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007281/0.3986, allocations: 164.1 kB / 389.6 MB, free: 8.082 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009841/0.3996, allocations: 0.5484 MB / 390.1 MB, free: 7.77 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001816/0.3998, allocations: 0.751 MB / 390.9 MB, free: 7.062 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.76e-05/0.3999, allocations: 22.8 kB / 390.9 MB, free: 7.055 MB / 318.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3999, allocations: 0 / 390.9 MB, free: 7.055 MB / 318.1 MB Notification: Performance of Templates: time 0.005897/0.4058, allocations: 3.117 MB / 394 MB, free: 6.773 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/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","/var/lib/jenkins1/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