Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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=5000,variableFilter="time|aD_Converter.z|pulse.T0|pulse.np",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00121/0.001211, allocations: 117.6 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001301/0.001302, allocations: 204.7 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.489/1.489, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001135/0.001135, allocations: 71.88 kB / 358.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3372/0.3383, allocations: 50.53 MB / 409.3 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.004048/0.3424, allocations: 2.379 MB / 411.6 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001401/0.3439, allocations: 0.7322 MB / 412.4 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000122/0.344, allocations: 4 kB / 412.4 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001734/0.3442, allocations: 39.64 kB / 412.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001066/0.3443, allocations: 55.48 kB / 412.5 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004664/0.3448, allocations: 103.8 kB / 412.6 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003686/0.3452, allocations: 271 kB / 412.8 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002836/0.3454, allocations: 111 kB / 412.9 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003156/0.3458, allocations: 127.5 kB / 413.1 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001704/0.346, allocations: 107.6 kB / 413.2 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.527e-05/0.346, allocations: 20 kB / 413.2 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.337e-05/0.3461, allocations: 28 kB / 413.2 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.698e-05/0.3462, allocations: 59.77 kB / 413.3 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001422/0.3463, allocations: 119.5 kB / 413.4 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003555/0.3467, allocations: 292 kB / 413.7 MB, free: 13.13 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.3467, allocations: 4 kB / 413.7 MB, free: 13.12 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3467, allocations: 0 / 413.7 MB, free: 13.12 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.3467, allocations: 3.938 kB / 413.7 MB, free: 13.12 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.001181/0.3479, allocations: 0.6601 MB / 414.3 MB, free: 12.39 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.348, allocations: 8.031 kB / 414.3 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002006/0.3482, allocations: 40.55 kB / 414.4 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003431/0.3485, allocations: 251.8 kB / 414.6 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.367e-05/0.3486, allocations: 50.05 kB / 414.7 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.686e-05/0.3487, allocations: 24.31 kB / 414.7 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005554/0.3492, allocations: 260.3 kB / 415 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/0.3492, allocations: 0 / 415 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.819e-05/0.3493, allocations: 8 kB / 415 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.243e-06/0.3493, allocations: 4 kB / 415 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004717/0.3498, allocations: 204.3 kB / 415.2 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001278/0.3511, allocations: 0.7524 MB / 415.9 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005601/0.3516, allocations: 302.6 kB / 416.2 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004023/0.352, allocations: 220.9 kB / 416.4 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.198e-05/0.3521, allocations: 7.984 kB / 416.4 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005055/0.3526, allocations: 312.9 kB / 416.7 MB, free: 9.828 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.503e-06/0.3526, allocations: 0 / 416.7 MB, free: 9.828 MB / 334.1 MB Notification: Performance of matching and sorting (n=31): time 0.001151/0.3538, allocations: 0.5747 MB / 417.3 MB, free: 9.234 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001159/0.3539, allocations: 207.8 kB / 417.5 MB, free: 8.988 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001727/0.3541, allocations: 187.4 kB / 417.7 MB, free: 8.793 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.307e-05/0.3541, allocations: 37.7 kB / 417.7 MB, free: 8.75 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.3542, allocations: 136.7 kB / 417.9 MB, free: 8.609 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.365e-05/0.3543, allocations: 78.98 kB / 418 MB, free: 8.531 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001007/0.3544, allocations: 70.03 kB / 418 MB, free: 8.457 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.3546, allocations: 338.8 kB / 418.4 MB, free: 8.117 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000238/0.3548, allocations: 112.6 kB / 418.5 MB, free: 8.004 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002555/0.3551, allocations: 175.3 kB / 418.6 MB, free: 7.812 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005237/0.3556, allocations: 413.3 kB / 419 MB, free: 7.359 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.3556, allocations: 0 / 419 MB, free: 7.359 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006546/0.3563, allocations: 441.8 kB / 419.5 MB, free: 6.906 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.904e-05/0.3563, allocations: 89.09 kB / 419.6 MB, free: 6.801 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.3564, allocations: 11.92 kB / 419.6 MB, free: 6.789 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.3564, allocations: 8.094 kB / 419.6 MB, free: 6.781 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001828/0.3566, allocations: 35.92 kB / 419.6 MB, free: 6.746 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.3566, allocations: 4 kB / 419.6 MB, free: 6.742 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001849/0.3568, allocations: 35.77 kB / 419.7 MB, free: 6.707 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.29e-05/0.3568, allocations: 12 kB / 419.7 MB, free: 6.695 MB / 334.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.000233/0.357, allocations: 240.8 kB / 419.9 MB, free: 6.441 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.56e-05/0.3571, allocations: 23.72 kB / 419.9 MB, free: 6.418 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.309e-05/0.3572, allocations: 30.58 kB / 420 MB, free: 6.391 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.3572, allocations: 0 / 420 MB, free: 6.391 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/0.3572, allocations: 4 kB / 420 MB, free: 6.387 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.3572, allocations: 0 / 420 MB, free: 6.387 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001342/0.3586, allocations: 0.9318 MB / 420.9 MB, free: 5.383 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.3586, allocations: 0 / 420.9 MB, free: 5.383 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001071/0.3587, allocations: 23.98 kB / 420.9 MB, free: 5.359 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.598e-06/0.3587, allocations: 4 kB / 420.9 MB, free: 5.355 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.55e-05/0.3587, allocations: 11.98 kB / 420.9 MB, free: 5.344 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.3587, allocations: 192 / 420.9 MB, free: 5.344 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.3587, allocations: 8.031 kB / 420.9 MB, free: 5.336 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008526/0.3596, allocations: 0.6124 MB / 421.5 MB, free: 4.691 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.823e-05/0.3597, allocations: 104.8 kB / 421.6 MB, free: 4.57 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.666e-05/0.3597, allocations: 19.92 kB / 421.7 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002097/0.3599, allocations: 23.98 kB / 421.7 MB, free: 4.527 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.878e-05/0.36, allocations: 19.97 kB / 421.7 MB, free: 4.508 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.41e-05/0.3601, allocations: 11.98 kB / 421.7 MB, free: 4.496 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.396e-05/0.3602, allocations: 135.2 kB / 421.9 MB, free: 4.363 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3602, allocations: 0 / 421.9 MB, free: 4.363 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003315/0.3605, allocations: 75.94 kB / 421.9 MB, free: 4.289 MB / 334.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.0001861/0.3607, allocations: 140.9 kB / 422.1 MB, free: 4.145 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007983/0.3615, allocations: 0.541 MB / 422.6 MB, free: 3.566 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3615, allocations: 0 / 422.6 MB, free: 3.566 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004717/0.362, allocations: 400.8 kB / 423 MB, free: 3.152 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006511/0.3627, allocations: 147.1 kB / 423.1 MB, free: 3.02 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009385/0.3636, allocations: 0.525 MB / 423.7 MB, free: 2.461 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003074/0.3639, allocations: 0.7484 MB / 424.4 MB, free: 1.684 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001371/0.3641, allocations: 53.88 kB / 424.5 MB, free: 1.629 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.923e-05/0.3641, allocations: 19.44 kB / 424.5 MB, free: 1.609 MB / 334.1 MB Notification: Performance of SimCode: time 4.7e-07/0.3641, allocations: 0 / 424.5 MB, free: 1.609 MB / 334.1 MB Notification: Performance of Templates: time 0.008123/0.3723, allocations: 4.284 MB / 428.8 MB, free: 13.38 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches