Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) 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.0.0_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.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001294/0.001294, allocations: 176.4 kB / 8.347 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.276/1.276, allocations: 221.5 MB / 230.3 MB, free: 7.566 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008057/0.0008057, allocations: 95.98 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.725e-05/1.726e-05, allocations: 8 kB / 337 MB, free: 10.04 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09433/0.09436, allocations: 50.41 MB / 387.4 MB, free: 7.582 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3134/0.4079, allocations: 78.79 MB / 466.2 MB, free: 80 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002205/0.4082, allocations: 71.95 kB / 466.3 MB, free: 8 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01763/0.4258, allocations: 7.203 MB / 473.5 MB, free: 8.801 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4258, allocations: 0 / 473.5 MB, free: 8.801 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.193e-05/0.4259, allocations: 4 kB / 473.5 MB, free: 8.797 MB / 346.7 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.0009605/0.4269, allocations: 0.5907 MB / 474.1 MB, free: 8.145 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.4269, allocations: 8.031 kB / 474.1 MB, free: 8.137 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001071/0.427, allocations: 27.72 kB / 474.1 MB, free: 8.109 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004258/0.4275, allocations: 251.3 kB / 474.4 MB, free: 7.82 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.838e-05/0.4276, allocations: 49.69 kB / 474.4 MB, free: 7.766 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.604e-05/0.4276, allocations: 12 kB / 474.4 MB, free: 7.754 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003204/0.4279, allocations: 160.3 kB / 474.6 MB, free: 7.598 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003419/0.4283, allocations: 204 kB / 474.8 MB, free: 7.395 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.4283, allocations: 0 / 474.8 MB, free: 7.395 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.823e-05/0.4283, allocations: 7.969 kB / 474.8 MB, free: 7.387 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/0.4283, allocations: 8 kB / 474.8 MB, free: 7.379 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001243/0.4296, allocations: 0.7175 MB / 475.5 MB, free: 6.609 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003428/0.43, allocations: 243.7 kB / 475.8 MB, free: 6.359 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002528/0.4302, allocations: 193.4 kB / 476 MB, free: 6.168 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.99e-05/0.4302, allocations: 4 kB / 476 MB, free: 6.164 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004055/0.4307, allocations: 295 kB / 476.3 MB, free: 5.844 MB / 346.7 MB Notification: Performance of pre-optimization done (n=31): time 2.605e-06/0.4307, allocations: 0 / 476.3 MB, free: 5.844 MB / 346.7 MB Notification: Performance of matching and sorting (n=31): time 0.0005651/0.4312, allocations: 317.8 kB / 476.6 MB, free: 5.527 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001185/0.4314, allocations: 225.6 kB / 476.8 MB, free: 5.258 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001509/0.4315, allocations: 150 kB / 476.9 MB, free: 5.105 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.588e-05/0.4316, allocations: 37.7 kB / 477 MB, free: 5.062 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.231e-05/0.4317, allocations: 136.4 kB / 477.1 MB, free: 4.926 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.973e-05/0.4317, allocations: 75.05 kB / 477.2 MB, free: 4.852 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.401e-05/0.4318, allocations: 3.984 kB / 477.2 MB, free: 4.848 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.4319, allocations: 338.8 kB / 477.5 MB, free: 4.508 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001345/0.432, allocations: 84.67 kB / 477.6 MB, free: 4.418 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001773/0.4322, allocations: 147.9 kB / 477.7 MB, free: 4.25 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001574/0.4324, allocations: 109.7 kB / 477.8 MB, free: 4.145 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.4324, allocations: 0 / 477.8 MB, free: 4.145 MB / 346.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0004152/0.4328, allocations: 297.8 kB / 478.1 MB, free: 3.852 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.772e-05/0.4329, allocations: 97.09 kB / 478.2 MB, free: 3.738 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.4329, allocations: 0 / 478.2 MB, free: 3.738 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.4329, allocations: 8.125 kB / 478.2 MB, free: 3.73 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001939/0.4331, allocations: 39.92 kB / 478.3 MB, free: 3.691 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.4332, allocations: 4 kB / 478.3 MB, free: 3.688 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001906/0.4334, allocations: 27.83 kB / 478.3 MB, free: 3.66 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.49e-05/0.4334, allocations: 8 kB / 478.3 MB, free: 3.652 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.dA_Converter.y,dA_Converter.y,$PRE.aD_Converter.z,aD_Converter.z,$PRE.aD_Converter.y[1],aD_Converter.y[1],$PRE.aD_Converter.y[2],aD_Converter.y[2],$PRE.aD_Converter.y[3],aD_Converter.y[3],$PRE.aD_Converter.y[4],aD_Converter.y[4],$PRE.aD_Converter.y[5],aD_Converter.y[5],$PRE.aD_Converter.y[6],aD_Converter.y[6],$PRE.aD_Converter.y[7],aD_Converter.y[7],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],$whenCondition3,$whenCondition1,$whenCondition2,aD_Converter.trig,$PRE.pulse.T0,pulse.T0,$PRE.pulse.np,pulse.np,pulse.sampling,$PRE.dA_Converter.vout,dA_Converter.vout) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001963/0.4336, allocations: 223.2 kB / 478.5 MB, free: 3.414 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.598e-05/0.4336, allocations: 27.7 kB / 478.6 MB, free: 3.387 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.845e-05/0.4337, allocations: 19.41 kB / 478.6 MB, free: 3.367 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.181e-06/0.4337, allocations: 4 kB / 478.6 MB, free: 3.363 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.4337, allocations: 0 / 478.6 MB, free: 3.363 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.4337, allocations: 0 / 478.6 MB, free: 3.363 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009668/0.4347, allocations: 0.7996 MB / 479.4 MB, free: 2.516 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.4347, allocations: 0 / 479.4 MB, free: 2.516 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001119/0.4348, allocations: 23.98 kB / 479.4 MB, free: 2.492 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.4349, allocations: 0 / 479.4 MB, free: 2.492 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.865e-05/0.4349, allocations: 7.984 kB / 479.4 MB, free: 2.484 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.71e-06/0.4349, allocations: 7.938 kB / 479.4 MB, free: 2.477 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.4349, allocations: 0 / 479.4 MB, free: 2.477 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005197/0.4354, allocations: 465.8 kB / 479.9 MB, free: 1.996 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.895e-05/0.4355, allocations: 96.83 kB / 480 MB, free: 1.883 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.087e-05/0.4356, allocations: 19.94 kB / 480 MB, free: 1.863 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002263/0.4358, allocations: 24.17 kB / 480 MB, free: 1.84 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.326e-05/0.4359, allocations: 27.95 kB / 480 MB, free: 1.812 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.679e-05/0.4359, allocations: 11.94 kB / 480.1 MB, free: 1.801 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.253e-05/0.436, allocations: 124.3 kB / 480.2 MB, free: 1.68 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.436, allocations: 0 / 480.2 MB, free: 1.68 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003307/0.4364, allocations: 63.94 kB / 480.2 MB, free: 1.617 MB / 346.7 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.trig,aD_Converter.z,pulse.T0,pulse.np,pulse.sampling,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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001762/0.4366, allocations: 136.9 kB / 480.4 MB, free: 1.477 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005235/0.4371, allocations: 490.7 kB / 480.8 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.4371, allocations: 3.938 kB / 480.9 MB, free: 0.957 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003284/0.4374, allocations: 358.7 kB / 481.2 MB, free: 0.582 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006204/0.4381, allocations: 115 kB / 481.3 MB, free: 484 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007787/0.4389, allocations: 371.1 kB / 481.7 MB, free: 88 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003056/0.4392, allocations: 0.7525 MB / 482.4 MB, free: 15.3 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001563/0.4393, allocations: 54.02 kB / 482.5 MB, free: 15.25 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.206e-05/0.4394, allocations: 19.44 kB / 482.5 MB, free: 15.23 MB / 362.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4394, allocations: 0 / 482.5 MB, free: 15.23 MB / 362.7 MB Notification: Performance of Templates: time 0.007806/0.4472, allocations: 3.684 MB / 486.2 MB, free: 11.6 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/AD_DA_conversion/AD_DA_conversion.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches