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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00144/0.00144, allocations: 79.91 kB / 21.18 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001284/0.001284, allocations: 145.1 kB / 24.54 MB, free: 36 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.023/1.023, allocations: 173.4 MB / 201.1 MB, free: 8.992 MB / 186.7 MB " [Timeout remaining time 179] 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) 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=5601,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=5601,variableFilter="time|aD_Converter.z|pulse.T0|pulse.np",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.084e-06/2.084e-06, allocations: 0 / 268 MB, free: 6.277 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.794e-05/2.003e-05, allocations: 6.312 kB / 268 MB, free: 6.27 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003024/0.003045, allocations: 2.367 MB / 270.4 MB, free: 3.891 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001103/0.004148, allocations: 0.6581 MB / 271 MB, free: 3.227 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.512e-05/0.004243, allocations: 7.938 kB / 271 MB, free: 3.219 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001401/0.004383, allocations: 31.66 kB / 271.1 MB, free: 3.188 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.625e-05/0.004459, allocations: 63.42 kB / 271.1 MB, free: 3.125 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002762/0.004736, allocations: 87.7 kB / 271.2 MB, free: 3.039 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003332/0.005069, allocations: 278.8 kB / 271.5 MB, free: 2.766 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001607/0.005229, allocations: 79.64 kB / 271.6 MB, free: 2.684 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001917/0.005421, allocations: 163.7 kB / 271.7 MB, free: 2.523 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001122/0.005533, allocations: 91.7 kB / 271.8 MB, free: 2.434 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.412e-05/0.005567, allocations: 20 kB / 271.8 MB, free: 2.414 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.786e-05/0.005595, allocations: 24 kB / 271.9 MB, free: 2.391 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.749e-05/0.005653, allocations: 55.81 kB / 271.9 MB, free: 2.336 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.208e-05/0.005735, allocations: 79.83 kB / 272 MB, free: 2.258 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000228/0.005963, allocations: 203.3 kB / 272.2 MB, free: 2.059 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.005965, allocations: 0 / 272.2 MB, free: 2.059 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.51e-07/0.005966, allocations: 4 kB / 272.2 MB, free: 2.055 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.00597, allocations: 0 / 272.2 MB, free: 2.055 MB / 250.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.0006673/0.006638, allocations: 0.6883 MB / 272.9 MB, free: 1.309 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.34e-05/0.006671, allocations: 12.92 kB / 272.9 MB, free: 1.297 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.664e-05/0.006738, allocations: 40.8 kB / 272.9 MB, free: 1.258 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001921/0.00693, allocations: 192.8 kB / 273.1 MB, free: 1.039 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.862e-05/0.006998, allocations: 79.95 kB / 273.2 MB, free: 0.9492 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.38e-05/0.007022, allocations: 20.38 kB / 273.2 MB, free: 0.9297 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003335/0.007356, allocations: 314.7 kB / 273.5 MB, free: 0.5938 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.007364, allocations: 192 / 273.5 MB, free: 0.5938 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.774e-05/0.007381, allocations: 8.125 kB / 273.5 MB, free: 0.5859 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.007388, allocations: 4 kB / 273.5 MB, free: 0.582 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001706/0.007559, allocations: 184.3 kB / 273.7 MB, free: 400 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007536/0.008313, allocations: 0.6663 MB / 274.4 MB, free: 15.68 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002495/0.008562, allocations: 258 kB / 274.6 MB, free: 15.4 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001947/0.008757, allocations: 207.2 kB / 274.8 MB, free: 15.18 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.348e-05/0.00877, allocations: 4 kB / 274.8 MB, free: 15.18 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002816/0.009052, allocations: 372.9 kB / 275.2 MB, free: 14.76 MB / 266.7 MB Notification: Performance of pre-optimization done (n=31): time 1.102e-06/0.009053, allocations: 0 / 275.2 MB, free: 14.76 MB / 266.7 MB Notification: Performance of matching and sorting (n=31): time 0.0005349/0.009588, allocations: 0.5971 MB / 275.8 MB, free: 14.12 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.641e-05/0.009664, allocations: 203.9 kB / 276 MB, free: 13.88 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001246/0.009789, allocations: 241.8 kB / 276.2 MB, free: 13.62 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.022e-05/0.009819, allocations: 37.69 kB / 276.3 MB, free: 13.58 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.564e-05/0.009895, allocations: 175.6 kB / 276.4 MB, free: 13.41 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.798e-05/0.009943, allocations: 83.42 kB / 276.5 MB, free: 13.32 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.328e-05/0.01002, allocations: 79.62 kB / 276.6 MB, free: 13.23 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.01016, allocations: 0.5078 MB / 277.1 MB, free: 12.71 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001112/0.01027, allocations: 137.8 kB / 277.2 MB, free: 12.56 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001567/0.01043, allocations: 253.7 kB / 277.5 MB, free: 12.26 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002191/0.01064, allocations: 329.5 kB / 277.8 MB, free: 11.88 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.01065, allocations: 3.938 kB / 277.8 MB, free: 11.88 MB / 266.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0003293/0.01098, allocations: 443.5 kB / 278.3 MB, free: 11.4 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.487e-05/0.01102, allocations: 93.09 kB / 278.3 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.01103, allocations: 4 kB / 278.4 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.019e-05/0.01104, allocations: 0 / 278.4 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001229/0.01116, allocations: 43.91 kB / 278.4 MB, free: 11.25 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.01116, allocations: 4 kB / 278.4 MB, free: 11.24 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.226e-05/0.01126, allocations: 55.73 kB / 278.5 MB, free: 11.19 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.445e-05/0.01127, allocations: 11.98 kB / 278.5 MB, free: 11.18 MB / 266.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 (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.0001347/0.01141, allocations: 262.5 kB / 278.7 MB, free: 10.9 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.01e-05/0.01145, allocations: 35.86 kB / 278.8 MB, free: 10.86 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.991e-05/0.01148, allocations: 30.64 kB / 278.8 MB, free: 10.83 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.01148, allocations: 0 / 278.8 MB, free: 10.83 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.01148, allocations: 0 / 278.8 MB, free: 10.83 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.01149, allocations: 7.938 kB / 278.8 MB, free: 10.82 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006875/0.01217, allocations: 0.854 MB / 279.6 MB, free: 9.902 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.01218, allocations: 4 kB / 279.7 MB, free: 9.898 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.914e-05/0.01223, allocations: 23.98 kB / 279.7 MB, free: 9.875 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.01224, allocations: 0 / 279.7 MB, free: 9.875 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.541e-05/0.01225, allocations: 4 kB / 279.7 MB, free: 9.871 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.068e-06/0.01226, allocations: 3.938 kB / 279.7 MB, free: 9.867 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.01226, allocations: 8.031 kB / 279.7 MB, free: 9.859 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004354/0.01269, allocations: 0.6396 MB / 280.3 MB, free: 9.172 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.04e-05/0.01272, allocations: 31.66 kB / 280.4 MB, free: 9.141 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.383e-05/0.01276, allocations: 12 kB / 280.4 MB, free: 9.129 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001028/0.01286, allocations: 19.98 kB / 280.4 MB, free: 9.109 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.053e-05/0.01292, allocations: 23.95 kB / 280.4 MB, free: 9.086 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.71e-05/0.01294, allocations: 12 kB / 280.4 MB, free: 9.074 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.731e-05/0.013, allocations: 164.2 kB / 280.6 MB, free: 8.914 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.013, allocations: 0 / 280.6 MB, free: 8.914 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002133/0.01322, allocations: 79.89 kB / 280.7 MB, free: 8.836 MB / 266.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.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.0001007/0.01332, allocations: 137.1 kB / 280.8 MB, free: 8.695 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000397/0.01372, allocations: 0.5451 MB / 281.3 MB, free: 8.078 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.412e-06/0.01372, allocations: 0 / 281.3 MB, free: 8.078 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001939/0.01391, allocations: 326 kB / 281.7 MB, free: 7.719 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003917/0.0143, allocations: 160.8 kB / 281.8 MB, free: 7.574 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000807/0.01511, allocations: 0.5571 MB / 282.4 MB, free: 6.969 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.87e-05/0.01516, allocations: 84.81 kB / 282.5 MB, free: 6.867 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.221e-05/0.01525, allocations: 45.89 kB / 282.5 MB, free: 6.82 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.511e-05/0.0153, allocations: 20.5 kB / 282.5 MB, free: 6.801 MB / 266.7 MB Notification: Performance of SimCode: time 5.61e-07/0.0153, allocations: 4 kB / 282.5 MB, free: 6.797 MB / 266.7 MB Notification: Performance of Templates: time 0.005839/0.02114, allocations: 4.778 MB / 287.3 MB, free: 2.113 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8437943337485194]