Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001117/0.001117, allocations: 75.59 kB / 21.18 MB, free: 3.391 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001088/0.001088, allocations: 161 kB / 24.56 MB, free: 20 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.048/1.048, allocations: 177.1 MB / 205 MB, free: 5.293 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.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 / 273 MB, free: 1.391 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.765e-05/2.974e-05, allocations: 2.312 kB / 273 MB, free: 1.387 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.004959/0.004989, allocations: 2.41 MB / 275.4 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001856/0.006845, allocations: 0.7204 MB / 276.1 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001567/0.007002, allocations: 4 kB / 276.1 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001617/0.007164, allocations: 35.66 kB / 276.2 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001014/0.007265, allocations: 59.42 kB / 276.2 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004673/0.007732, allocations: 107.6 kB / 276.3 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003086/0.008041, allocations: 270.9 kB / 276.6 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001936/0.008234, allocations: 71.67 kB / 276.7 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003321/0.008566, allocations: 175.6 kB / 276.8 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001452/0.008712, allocations: 91.75 kB / 276.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.661e-05/0.008748, allocations: 24 kB / 276.9 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.286e-05/0.008811, allocations: 24 kB / 277 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.292e-05/0.008874, allocations: 59.75 kB / 277 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.61e-05/0.00897, allocations: 79.83 kB / 277.1 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003053/0.009275, allocations: 203.3 kB / 277.3 MB, free: 13.05 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.00928, allocations: 0 / 277.3 MB, free: 13.05 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.009281, allocations: 0 / 277.3 MB, free: 13.05 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.6e-06/0.009287, allocations: 4 kB / 277.3 MB, free: 13.05 MB / 266.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.0008156/0.0101, allocations: 0.6961 MB / 278 MB, free: 12.3 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.01014, allocations: 12.03 kB / 278 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001584/0.01029, allocations: 56.73 kB / 278.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002369/0.01053, allocations: 184.3 kB / 278.2 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.519e-05/0.01061, allocations: 71.95 kB / 278.3 MB, free: 11.94 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.742e-05/0.01063, allocations: 24.38 kB / 278.3 MB, free: 11.92 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003547/0.01099, allocations: 306.9 kB / 278.6 MB, free: 11.59 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.011, allocations: 192 / 278.6 MB, free: 11.59 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.955e-05/0.01102, allocations: 12.12 kB / 278.7 MB, free: 11.58 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.01102, allocations: 4 kB / 278.7 MB, free: 11.58 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001793/0.0112, allocations: 184.2 kB / 278.8 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008207/0.01202, allocations: 0.6894 MB / 279.5 MB, free: 10.65 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002731/0.0123, allocations: 247.1 kB / 279.8 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002091/0.01251, allocations: 211.2 kB / 280 MB, free: 10.16 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.001e-05/0.01253, allocations: 0 / 280 MB, free: 10.16 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002936/0.01282, allocations: 376.7 kB / 280.3 MB, free: 9.734 MB / 266.7 MB Notification: Performance of pre-optimization done (n=31): time 9.82e-07/0.01282, allocations: 0 / 280.3 MB, free: 9.734 MB / 266.7 MB Notification: Performance of matching and sorting (n=31): time 0.0005665/0.01339, allocations: 0.5973 MB / 280.9 MB, free: 9.094 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.073e-05/0.01348, allocations: 203.8 kB / 281.1 MB, free: 8.852 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001438/0.01362, allocations: 238.6 kB / 281.4 MB, free: 8.602 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.383e-05/0.01365, allocations: 37.69 kB / 281.4 MB, free: 8.559 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.168e-05/0.01373, allocations: 183.6 kB / 281.6 MB, free: 8.375 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.889e-05/0.01378, allocations: 87.38 kB / 281.7 MB, free: 8.289 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.747e-05/0.01385, allocations: 75.67 kB / 281.7 MB, free: 8.203 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.014, allocations: 0.5079 MB / 282.3 MB, free: 7.684 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001125/0.01411, allocations: 137.8 kB / 282.4 MB, free: 7.527 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001654/0.01428, allocations: 257.7 kB / 282.6 MB, free: 7.223 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002395/0.01452, allocations: 325.6 kB / 283 MB, free: 6.852 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.01452, allocations: 4 kB / 283 MB, free: 6.848 MB / 266.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0003856/0.01491, allocations: 447.4 kB / 283.4 MB, free: 6.367 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.9e-05/0.01496, allocations: 93.09 kB / 283.5 MB, free: 6.258 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.01496, allocations: 4 kB / 283.5 MB, free: 6.254 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.01498, allocations: 4 kB / 283.5 MB, free: 6.25 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001371/0.01512, allocations: 47.91 kB / 283.5 MB, free: 6.203 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.01512, allocations: 0 / 283.5 MB, free: 6.203 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.371e-05/0.01522, allocations: 43.7 kB / 283.6 MB, free: 6.16 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.419e-05/0.01523, allocations: 8 kB / 283.6 MB, free: 6.152 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.0001523/0.01538, allocations: 274.5 kB / 283.9 MB, free: 5.859 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.964e-05/0.01542, allocations: 31.91 kB / 283.9 MB, free: 5.828 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.922e-05/0.01546, allocations: 26.64 kB / 283.9 MB, free: 5.801 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/0.01546, allocations: 4 kB / 283.9 MB, free: 5.797 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.01547, allocations: 0 / 283.9 MB, free: 5.797 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.01547, allocations: 3.938 kB / 283.9 MB, free: 5.793 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007538/0.01623, allocations: 0.8549 MB / 284.8 MB, free: 4.867 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.676e-06/0.01623, allocations: 0 / 284.8 MB, free: 4.867 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.148e-05/0.01629, allocations: 27.92 kB / 284.8 MB, free: 4.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.0163, allocations: 3.984 kB / 284.8 MB, free: 4.836 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.98e-05/0.01632, allocations: 15.98 kB / 284.8 MB, free: 4.82 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.01632, allocations: 3.938 kB / 284.8 MB, free: 4.816 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.01632, allocations: 0 / 284.8 MB, free: 4.816 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004466/0.01677, allocations: 0.631 MB / 285.5 MB, free: 4.137 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.546e-05/0.01679, allocations: 35.75 kB / 285.5 MB, free: 4.102 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.524e-05/0.01683, allocations: 16 kB / 285.5 MB, free: 4.086 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.929e-05/0.01693, allocations: 15.98 kB / 285.5 MB, free: 4.07 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.193e-05/0.01699, allocations: 27.89 kB / 285.6 MB, free: 4.043 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.724e-05/0.01701, allocations: 12 kB / 285.6 MB, free: 4.031 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.871e-05/0.01708, allocations: 164.2 kB / 285.7 MB, free: 3.871 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01708, allocations: 3.938 kB / 285.7 MB, free: 3.867 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002298/0.01731, allocations: 71.95 kB / 285.8 MB, free: 3.797 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.0001164/0.01743, allocations: 129.2 kB / 285.9 MB, free: 3.66 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004398/0.01787, allocations: 0.549 MB / 286.5 MB, free: 3.039 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.01787, allocations: 0 / 286.5 MB, free: 3.039 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000234/0.01811, allocations: 338.5 kB / 286.8 MB, free: 2.668 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004255/0.01853, allocations: 145.5 kB / 287 MB, free: 2.535 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009222/0.01945, allocations: 0.5641 MB / 287.5 MB, free: 1.926 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.716e-05/0.01951, allocations: 84.83 kB / 287.6 MB, free: 1.824 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001026/0.01961, allocations: 49.88 kB / 287.6 MB, free: 1.777 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.19e-05/0.01967, allocations: 20.5 kB / 287.7 MB, free: 1.758 MB / 266.7 MB Notification: Performance of SimCode: time 9.22e-07/0.01967, allocations: 0 / 287.7 MB, free: 1.758 MB / 266.7 MB Notification: Performance of Templates: time 0.1206/0.1403, allocations: 4.517 MB / 292.2 MB, free: 25.96 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 3.197756865993142]