Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.AD_DA_conversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.007225/0.007225, allocations: 109.8 kB / 21.98 MB, free: 5.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001876/0.001876, allocations: 220.6 kB / 25.29 MB, free: 3.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.463/1.463, allocations: 230.6 MB / 259 MB, free: 8.035 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_Modelica.Electrical.Analog.Examples.AD_DA_conversion") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001954/0.001954, allocations: 67.89 kB / 379.8 MB, free: 2.688 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2604/0.2623, allocations: 53.37 MB / 433.2 MB, free: 7.012 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.004262/0.2666, allocations: 2.417 MB / 435.6 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001633/0.2682, allocations: 0.7556 MB / 436.3 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000223/0.2684, allocations: 4 kB / 436.3 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000196/0.2686, allocations: 27.66 kB / 436.4 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001851/0.2688, allocations: 55.5 kB / 436.4 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004338/0.2693, allocations: 103.8 kB / 436.5 MB, free: 3.637 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003589/0.2696, allocations: 275 kB / 436.8 MB, free: 3.367 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002384/0.2699, allocations: 80.36 kB / 436.9 MB, free: 3.285 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002572/0.2701, allocations: 119.6 kB / 437 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001906/0.2703, allocations: 111.5 kB / 437.1 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.933e-05/0.2704, allocations: 27.98 kB / 437.1 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.68e-05/0.2704, allocations: 24 kB / 437.2 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.099e-05/0.2705, allocations: 59.77 kB / 437.2 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001381/0.2706, allocations: 119.4 kB / 437.3 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003911/0.271, allocations: 288.1 kB / 437.6 MB, free: 2.555 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.271, allocations: 3.938 kB / 437.6 MB, free: 2.551 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.271, allocations: 4 kB / 437.6 MB, free: 2.547 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.271, allocations: 0 / 437.6 MB, free: 2.547 MB / 334.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.001114/0.2722, allocations: 0.5962 MB / 438.2 MB, free: 1.902 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.2722, allocations: 15.97 kB / 438.2 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001897/0.2724, allocations: 44.73 kB / 438.3 MB, free: 1.844 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003466/0.2727, allocations: 178.2 kB / 438.4 MB, free: 1.645 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.176e-05/0.2728, allocations: 54.05 kB / 438.5 MB, free: 1.586 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.446e-05/0.2728, allocations: 16.38 kB / 438.5 MB, free: 1.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000656/0.2735, allocations: 264.2 kB / 438.8 MB, free: 1.305 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.2735, allocations: 0 / 438.8 MB, free: 1.305 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.453e-05/0.2735, allocations: 4 kB / 438.8 MB, free: 1.301 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.2735, allocations: 8 kB / 438.8 MB, free: 1.293 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005183/0.2741, allocations: 204.3 kB / 439 MB, free: 1.094 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001392/0.2755, allocations: 0.7321 MB / 439.7 MB, free: 312 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005775/0.276, allocations: 251.2 kB / 440 MB, free: 48 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004424/0.2765, allocations: 187.9 kB / 440.1 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.485e-05/0.2765, allocations: 8 kB / 440.2 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005838/0.2771, allocations: 320.2 kB / 440.5 MB, free: 15.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.864e-06/0.2771, allocations: 0 / 440.5 MB, free: 15.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.001305/0.2784, allocations: 0.5724 MB / 441 MB, free: 14.92 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000146/0.2785, allocations: 203.9 kB / 441.2 MB, free: 14.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001916/0.2787, allocations: 186.7 kB / 441.4 MB, free: 14.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.741e-05/0.2788, allocations: 41.69 kB / 441.5 MB, free: 14.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001/0.2789, allocations: 132.9 kB / 441.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.307e-05/0.279, allocations: 91.3 kB / 441.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001016/0.2791, allocations: 66.02 kB / 441.7 MB, free: 14.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.2792, allocations: 338.8 kB / 442.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002523/0.2795, allocations: 108.6 kB / 442.2 MB, free: 13.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002883/0.2798, allocations: 171.1 kB / 442.3 MB, free: 13.51 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006222/0.2804, allocations: 416.4 kB / 442.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.2804, allocations: 0 / 442.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007501/0.2811, allocations: 442.3 kB / 443.2 MB, free: 12.6 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.333e-05/0.2812, allocations: 97.09 kB / 443.3 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.2812, allocations: 7.938 kB / 443.3 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.2812, allocations: 4 kB / 443.3 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002024/0.2814, allocations: 35.92 kB / 443.3 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.222e-05/0.2815, allocations: 4 kB / 443.3 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001887/0.2816, allocations: 39.92 kB / 443.4 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.109e-05/0.2817, allocations: 12 kB / 443.4 MB, free: 12.38 MB / 350.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.0002481/0.2819, allocations: 243.7 kB / 443.6 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.852e-05/0.282, allocations: 27.86 kB / 443.6 MB, free: 12.1 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.239e-05/0.282, allocations: 26.58 kB / 443.7 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.282, allocations: 4 kB / 443.7 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.282, allocations: 4 kB / 443.7 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.282, allocations: 0 / 443.7 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001474/0.2835, allocations: 0.9074 MB / 444.6 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.2835, allocations: 4 kB / 444.6 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001181/0.2836, allocations: 27.92 kB / 444.6 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.2836, allocations: 192 / 444.6 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.743e-05/0.2836, allocations: 7.984 kB / 444.6 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/0.2837, allocations: 7.938 kB / 444.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2837, allocations: 0 / 444.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009886/0.2846, allocations: 0.6214 MB / 445.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.741e-05/0.2847, allocations: 27.78 kB / 445.3 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.854e-05/0.2847, allocations: 12 kB / 445.3 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000234/0.285, allocations: 27.97 kB / 445.3 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.021e-05/0.2851, allocations: 23.97 kB / 445.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.215e-05/0.2851, allocations: 12 kB / 445.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001636/0.2852, allocations: 135.2 kB / 445.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2852, allocations: 0 / 445.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000366/0.2856, allocations: 68 kB / 445.6 MB, free: 10.09 MB / 350.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.0001865/0.2858, allocations: 133.3 kB / 445.7 MB, free: 9.953 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009925/0.2868, allocations: 0.524 MB / 446.2 MB, free: 9.395 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.2868, allocations: 0 / 446.2 MB, free: 9.395 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006031/0.2874, allocations: 326.9 kB / 446.5 MB, free: 9.051 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006949/0.2881, allocations: 136.6 kB / 446.7 MB, free: 8.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001131/0.2892, allocations: 0.566 MB / 447.2 MB, free: 8.328 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003932/0.2896, allocations: 0.7483 MB / 448 MB, free: 7.555 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.993e-05/0.2897, allocations: 23.44 kB / 448 MB, free: 7.531 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.2897, allocations: 0 / 448 MB, free: 7.531 MB / 350.1 MB Notification: Performance of Templates: time 0.006068/0.2958, allocations: 3.153 MB / 451.2 MB, free: 4.398 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.AD_DA_conversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/AD_DA_conversion/AD_DA_conversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.AD_DA_conversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.142831217031926]