Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.003476/0.003484, allocations: 182.1 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.021/4.021, allocations: 205.4 MB / 222.5 MB, free: 9.105 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001792/0.001792, allocations: 98.62 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006266/0.0006269, allocations: 8 kB / 327 MB, free: 216 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5261/0.5268, allocations: 47.58 MB / 374.5 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.004625/0.5315, allocations: 1.911 MB / 376.4 MB, free: 43.93 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002403/0.5339, allocations: 0.6693 MB / 377.1 MB, free: 43.4 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002894/0.5343, allocations: 7.312 kB / 377.1 MB, free: 43.39 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001869/0.5345, allocations: 26.03 kB / 377.1 MB, free: 43.37 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003006/0.5348, allocations: 59.52 kB / 377.2 MB, free: 43.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005682/0.5354, allocations: 66.42 kB / 377.3 MB, free: 43.27 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005397/0.536, allocations: 170.2 kB / 377.4 MB, free: 43.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003621/0.5364, allocations: 84.42 kB / 377.5 MB, free: 43.12 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004056/0.5368, allocations: 94.7 kB / 377.6 MB, free: 43.07 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003062/0.5371, allocations: 98.81 kB / 377.7 MB, free: 43 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.8e-05/0.5373, allocations: 11.12 kB / 377.7 MB, free: 43 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.726e-05/0.5373, allocations: 9.844 kB / 377.7 MB, free: 43 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.723e-05/0.5375, allocations: 33.53 kB / 377.8 MB, free: 42.98 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000117/0.5376, allocations: 66.23 kB / 377.8 MB, free: 42.93 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004601/0.5381, allocations: 201.2 kB / 378 MB, free: 42.78 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.5381, allocations: 0 / 378 MB, free: 42.78 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.318e-06/0.5381, allocations: 0 / 378 MB, free: 42.78 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.778e-06/0.5382, allocations: 5.312 kB / 378 MB, free: 42.77 MB / 298.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.001758/0.5399, allocations: 0.6378 MB / 378.7 MB, free: 42.17 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.165e-05/0.54, allocations: 8.938 kB / 378.7 MB, free: 42.17 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001692/0.5402, allocations: 26.03 kB / 378.7 MB, free: 42.16 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005039/0.5407, allocations: 238.1 kB / 378.9 MB, free: 41.91 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001478/0.5409, allocations: 57.09 kB / 379 MB, free: 41.86 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.228e-05/0.541, allocations: 17.19 kB / 379 MB, free: 41.86 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001351/0.5424, allocations: 255.7 kB / 379.2 MB, free: 41.72 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.563e-05/0.5425, allocations: 0 / 379.2 MB, free: 41.72 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.92e-05/0.5425, allocations: 15.09 kB / 379.3 MB, free: 41.71 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.42e-05/0.5426, allocations: 8.25 kB / 379.3 MB, free: 41.7 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001319/0.5439, allocations: 214 kB / 379.5 MB, free: 41.62 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003068/0.547, allocations: 0.7762 MB / 380.3 MB, free: 40.96 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001444/0.5485, allocations: 310.1 kB / 380.6 MB, free: 40.81 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.211e-05/0.5486, allocations: 2.656 kB / 380.6 MB, free: 40.81 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001195/0.5499, allocations: 325.5 kB / 380.9 MB, free: 40.57 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 5.721e-06/0.5499, allocations: 0 / 380.9 MB, free: 40.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.002928/0.5529, allocations: 0.7481 MB / 381.6 MB, free: 40.08 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001411/0.5531, allocations: 204.4 kB / 381.8 MB, free: 39.85 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003438/0.5534, allocations: 185.7 kB / 382 MB, free: 39.7 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.335e-05/0.5535, allocations: 39.28 kB / 382 MB, free: 39.66 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001705/0.5537, allocations: 201 kB / 382.2 MB, free: 39.47 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001382/0.5539, allocations: 73.08 kB / 382.3 MB, free: 39.41 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.511e-05/0.5539, allocations: 9 kB / 382.3 MB, free: 39.41 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.5541, allocations: 327.4 kB / 382.6 MB, free: 39.08 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006248/0.5547, allocations: 123 kB / 382.8 MB, free: 39.02 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006593/0.5554, allocations: 171.6 kB / 382.9 MB, free: 38.91 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007077/0.5561, allocations: 224.7 kB / 383.1 MB, free: 38.75 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.666e-06/0.5562, allocations: 0 / 383.1 MB, free: 38.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001694/0.5579, allocations: 445.7 kB / 383.6 MB, free: 38.48 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001203/0.5581, allocations: 96.62 kB / 383.7 MB, free: 38.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.547e-05/0.5581, allocations: 1.031 kB / 383.7 MB, free: 38.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.603e-05/0.5582, allocations: 3.656 kB / 383.7 MB, free: 38.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005443/0.5587, allocations: 47.91 kB / 383.7 MB, free: 38.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.738e-05/0.5588, allocations: 6.938 kB / 383.7 MB, free: 38.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000637/0.5594, allocations: 40.86 kB / 383.8 MB, free: 38.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.623e-05/0.5595, allocations: 17.41 kB / 383.8 MB, free: 38.33 MB / 298.7 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 ($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,$PRE.pulse.T0,pulse.T0,$PRE.pulse.np,pulse.np,pulse.sampling,dA_Converter.trig,$PRE.dA_Converter.vout,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005644/0.5601, allocations: 245.8 kB / 384 MB, free: 38.11 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001391/0.5603, allocations: 20.62 kB / 384.1 MB, free: 38.1 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.709e-05/0.5604, allocations: 21.97 kB / 384.1 MB, free: 38.08 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.065e-05/0.5604, allocations: 3.062 kB / 384.1 MB, free: 38.08 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.168e-05/0.5605, allocations: 0 / 384.1 MB, free: 38.08 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.219e-05/0.5605, allocations: 5.266 kB / 384.1 MB, free: 38.07 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003676/0.5642, allocations: 0.9061 MB / 385 MB, free: 37.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.196e-05/0.5643, allocations: 0 / 385 MB, free: 37.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003454/0.5646, allocations: 21.33 kB / 385 MB, free: 37.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.113e-05/0.5647, allocations: 1.125 kB / 385 MB, free: 37.41 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.435e-05/0.5648, allocations: 8.844 kB / 385 MB, free: 37.4 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.728e-06/0.5648, allocations: 5.422 kB / 385 MB, free: 37.4 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.5648, allocations: 0 / 385 MB, free: 37.4 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002529/0.5673, allocations: 0.6217 MB / 385.6 MB, free: 37.01 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001637/0.5676, allocations: 99.2 kB / 385.7 MB, free: 36.9 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001436/0.5677, allocations: 21.11 kB / 385.8 MB, free: 36.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005236/0.5683, allocations: 28.92 kB / 385.8 MB, free: 36.88 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001675/0.5685, allocations: 25.7 kB / 385.8 MB, free: 36.86 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.053e-05/0.5686, allocations: 7.156 kB / 385.8 MB, free: 36.86 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002129/0.5688, allocations: 134.7 kB / 386 MB, free: 36.76 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.12e-07/0.5688, allocations: 0 / 386 MB, free: 36.76 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008951/0.5697, allocations: 75.34 kB / 386 MB, free: 36.75 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (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.0003913/0.5702, allocations: 142.8 kB / 386.2 MB, free: 36.62 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002351/0.5725, allocations: 0.5621 MB / 386.7 MB, free: 36.03 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.101e-05/0.5726, allocations: 0 / 386.7 MB, free: 36.03 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00106/0.5737, allocations: 406.8 kB / 387.1 MB, free: 35.61 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001439/0.5752, allocations: 125.2 kB / 387.3 MB, free: 35.48 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002012/0.5772, allocations: 0.6258 MB / 387.9 MB, free: 34.83 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003064/0.5776, allocations: 0.7449 MB / 388.6 MB, free: 34.06 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002158/0.5779, allocations: 27.44 kB / 388.6 MB, free: 34.03 MB / 298.7 MB Notification: Performance of SimCode: time 1.813e-06/0.5779, allocations: 0 / 388.6 MB, free: 34.03 MB / 298.7 MB Notification: Performance of Templates: time 0.01112/0.589, allocations: 3.028 MB / 391.7 MB, free: 31.02 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches