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.001268/0.001268, allocations: 115 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001515/0.001515, allocations: 212.9 kB / 19.41 MB, free: 3.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 247.6 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 59.91 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2479/0.2492, allocations: 50.55 MB / 409.9 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003731/0.253, allocations: 2.372 MB / 412.3 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001344/0.2544, allocations: 0.7322 MB / 413 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001165/0.2545, allocations: 11.94 kB / 413.1 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001576/0.2547, allocations: 27.72 kB / 413.1 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000113/0.2548, allocations: 51.5 kB / 413.1 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003817/0.2552, allocations: 111.7 kB / 413.2 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003165/0.2555, allocations: 267 kB / 413.5 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002525/0.2558, allocations: 119 kB / 413.6 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002426/0.256, allocations: 119.6 kB / 413.7 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001647/0.2562, allocations: 115.6 kB / 413.9 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.373e-05/0.2563, allocations: 24 kB / 413.9 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.017e-05/0.2564, allocations: 32 kB / 413.9 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.383e-05/0.2564, allocations: 51.72 kB / 414 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001474/0.2566, allocations: 119.5 kB / 414.1 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003629/0.257, allocations: 284.1 kB / 414.4 MB, free: 13.17 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.257, allocations: 4 kB / 414.4 MB, free: 13.17 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.257, allocations: 0 / 414.4 MB, free: 13.17 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.973e-06/0.257, allocations: 0 / 414.4 MB, free: 13.17 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.001084/0.2581, allocations: 0.6717 MB / 415 MB, free: 12.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.2581, allocations: 8.031 kB / 415 MB, free: 12.42 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001881/0.2583, allocations: 36.56 kB / 415.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003949/0.2587, allocations: 247.8 kB / 415.3 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.979e-05/0.2588, allocations: 58.03 kB / 415.4 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.492e-05/0.2589, allocations: 16.38 kB / 415.4 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005351/0.2594, allocations: 260.3 kB / 415.6 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.2594, allocations: 0 / 415.6 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.879e-05/0.2595, allocations: 12 kB / 415.7 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.2595, allocations: 4 kB / 415.7 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000476/0.26, allocations: 208.2 kB / 415.9 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001279/0.2612, allocations: 0.7485 MB / 416.6 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005865/0.2618, allocations: 298.8 kB / 416.9 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000419/0.2623, allocations: 221 kB / 417.1 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.002e-05/0.2623, allocations: 4 kB / 417.1 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004982/0.2628, allocations: 320.9 kB / 417.4 MB, free: 9.867 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.673e-06/0.2628, allocations: 3.938 kB / 417.4 MB, free: 9.863 MB / 334.1 MB Notification: Performance of matching and sorting (n=31): time 0.001165/0.264, allocations: 0.5708 MB / 418 MB, free: 9.273 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001143/0.2641, allocations: 199.9 kB / 418.2 MB, free: 9.035 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001776/0.2643, allocations: 187.4 kB / 418.4 MB, free: 8.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.542e-05/0.2644, allocations: 41.69 kB / 418.4 MB, free: 8.793 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.699e-05/0.2645, allocations: 136.7 kB / 418.6 MB, free: 8.652 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.261e-05/0.2645, allocations: 79 kB / 418.6 MB, free: 8.574 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.81e-05/0.2646, allocations: 70.02 kB / 418.7 MB, free: 8.5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.2648, allocations: 334.8 kB / 419 MB, free: 8.164 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000247/0.265, allocations: 112.6 kB / 419.1 MB, free: 8.051 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002735/0.2653, allocations: 179.2 kB / 419.3 MB, free: 7.855 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000538/0.2659, allocations: 409.4 kB / 419.7 MB, free: 7.406 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.2659, allocations: 0 / 419.7 MB, free: 7.406 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006924/0.2666, allocations: 441.8 kB / 420.1 MB, free: 6.953 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.184e-05/0.2667, allocations: 93.09 kB / 420.2 MB, free: 6.844 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.2667, allocations: 8.031 kB / 420.2 MB, free: 6.836 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.2667, allocations: 4 kB / 420.3 MB, free: 6.832 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001941/0.2669, allocations: 39.92 kB / 420.3 MB, free: 6.793 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.488e-06/0.2669, allocations: 3.984 kB / 420.3 MB, free: 6.789 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001995/0.2671, allocations: 31.78 kB / 420.3 MB, free: 6.758 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.478e-05/0.2672, allocations: 19.92 kB / 420.3 MB, free: 6.738 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.0002459/0.2674, allocations: 240.8 kB / 420.6 MB, free: 6.484 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.602e-05/0.2675, allocations: 23.72 kB / 420.6 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.057e-05/0.2675, allocations: 30.77 kB / 420.6 MB, free: 6.434 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.257e-06/0.2675, allocations: 0 / 420.6 MB, free: 6.434 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.2675, allocations: 7.938 kB / 420.6 MB, free: 6.426 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.2675, allocations: 0 / 420.6 MB, free: 6.426 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001428/0.269, allocations: 0.9319 MB / 421.6 MB, free: 5.422 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.269, allocations: 0 / 421.6 MB, free: 5.422 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00012/0.2691, allocations: 23.92 kB / 421.6 MB, free: 5.398 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/0.2691, allocations: 4 kB / 421.6 MB, free: 5.395 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.703e-05/0.2692, allocations: 15.97 kB / 421.6 MB, free: 5.379 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.235e-06/0.2692, allocations: 4.031 kB / 421.6 MB, free: 5.375 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.2692, allocations: 4 kB / 421.6 MB, free: 5.371 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000887/0.2701, allocations: 0.6047 MB / 422.2 MB, free: 4.734 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.924e-05/0.2702, allocations: 104.8 kB / 422.3 MB, free: 4.613 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.807e-05/0.2702, allocations: 15.98 kB / 422.3 MB, free: 4.598 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002157/0.2705, allocations: 27.92 kB / 422.4 MB, free: 4.57 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.597e-05/0.2705, allocations: 19.97 kB / 422.4 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.719e-05/0.2706, allocations: 12 kB / 422.4 MB, free: 4.539 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001123/0.2707, allocations: 131.2 kB / 422.5 MB, free: 4.41 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.483e-06/0.2707, allocations: 0 / 422.5 MB, free: 4.41 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003524/0.2711, allocations: 87.86 kB / 422.6 MB, free: 4.324 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.0001845/0.2712, allocations: 129 kB / 422.7 MB, free: 4.191 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008344/0.2721, allocations: 0.541 MB / 423.3 MB, free: 3.613 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.2721, allocations: 0 / 423.3 MB, free: 3.613 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004862/0.2726, allocations: 397 kB / 423.7 MB, free: 3.203 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000696/0.2733, allocations: 154.8 kB / 423.8 MB, free: 3.062 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009833/0.2743, allocations: 0.5538 MB / 424.4 MB, free: 2.469 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003212/0.2746, allocations: 0.7523 MB / 425.1 MB, free: 1.688 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.557e-05/0.2747, allocations: 23.42 kB / 425.2 MB, free: 1.664 MB / 334.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2747, allocations: 4 kB / 425.2 MB, free: 1.66 MB / 334.1 MB Notification: Performance of Templates: time 0.005048/0.2798, allocations: 3.132 MB / 428.3 MB, free: 14.55 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/jenkins1/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/jenkins1/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