Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NRXFER.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Electrical.Digital.Examples.NRXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nRXFERGATE.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NRXFER") translateModel(Modelica.Electrical.Digital.Examples.NRXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nRXFERGATE.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NRXFER") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009735/0.0009736, allocations: 193.2 kB / 17.38 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.234/1.234, allocations: 226.6 MB / 244.7 MB, free: 8.168 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008304/0.0008308, allocations: 95.81 kB / 296.8 MB, free: 6.895 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003833/0.0003837, allocations: 8 kB / 356.7 MB, free: 10.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2618/0.2622, allocations: 51.3 MB / 408 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NRXFER): time 0.001194/0.2635, allocations: 1.201 MB / 409.2 MB, free: 26.51 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001282/0.2648, allocations: 0.8393 MB / 410.1 MB, free: 25.67 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.86e-05/0.2648, allocations: 3.938 kB / 410.1 MB, free: 25.66 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 6.528e-05/0.2649, allocations: 6.203 kB / 410.1 MB, free: 25.66 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.122e-05/0.2649, allocations: 15.86 kB / 410.1 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001869/0.2651, allocations: 35.95 kB / 410.1 MB, free: 25.61 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.548e-05/0.2652, allocations: 103.7 kB / 410.2 MB, free: 25.51 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.057e-05/0.2653, allocations: 22.17 kB / 410.3 MB, free: 25.48 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003851/0.2657, allocations: 495.1 kB / 410.8 MB, free: 25 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.037e-05/0.2658, allocations: 75.77 kB / 410.8 MB, free: 24.93 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.58e-05/0.2659, allocations: 4.75 kB / 410.8 MB, free: 24.92 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.903e-05/0.2659, allocations: 4 kB / 410.8 MB, free: 24.92 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.949e-05/0.266, allocations: 64.91 kB / 410.9 MB, free: 24.86 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.349e-05/0.2661, allocations: 121.1 kB / 411 MB, free: 24.73 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001758/0.2663, allocations: 303.2 kB / 411.3 MB, free: 24.43 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.2663, allocations: 0.5 kB / 411.3 MB, free: 24.43 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2663, allocations: 0.7188 kB / 411.3 MB, free: 24.43 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.2663, allocations: 0 / 411.3 MB, free: 24.43 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0004364/0.2667, allocations: 0.661 MB / 412 MB, free: 23.7 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.081e-05/0.2668, allocations: 8.031 kB / 412 MB, free: 23.7 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.527e-05/0.2668, allocations: 40.5 kB / 412 MB, free: 23.66 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001964/0.267, allocations: 270.3 kB / 412.3 MB, free: 23.35 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.097e-05/0.2671, allocations: 12.36 kB / 412.3 MB, free: 23.34 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.416e-05/0.2671, allocations: 8.375 kB / 412.3 MB, free: 23.33 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002588/0.2674, allocations: 137.8 kB / 412.4 MB, free: 23.2 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.2674, allocations: 5.625 kB / 412.4 MB, free: 23.19 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.104e-05/0.2674, allocations: 0 / 412.4 MB, free: 23.19 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.2674, allocations: 4 kB / 412.5 MB, free: 23.19 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001194/0.2675, allocations: 59.95 kB / 412.5 MB, free: 23.13 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004651/0.268, allocations: 459.9 kB / 413 MB, free: 22.63 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001531/0.2682, allocations: 90.55 kB / 413 MB, free: 22.54 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000124/0.2683, allocations: 88.88 kB / 413.1 MB, free: 22.45 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.504e-06/0.2683, allocations: 8.109 kB / 413.1 MB, free: 22.44 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002569/0.2686, allocations: 210.6 kB / 413.3 MB, free: 22.21 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.532e-06/0.2686, allocations: 0 / 413.3 MB, free: 22.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006347/0.2692, allocations: 475.9 kB / 413.8 MB, free: 21.71 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.747e-05/0.2693, allocations: 166.2 kB / 414 MB, free: 21.51 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007506/0.2701, allocations: 0.513 MB / 414.5 MB, free: 20.99 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.199e-05/0.2701, allocations: 29.7 kB / 414.5 MB, free: 20.96 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.924e-05/0.2702, allocations: 101 kB / 414.6 MB, free: 20.86 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.559e-05/0.2702, allocations: 31.64 kB / 414.6 MB, free: 20.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.628e-05/0.2703, allocations: 8 kB / 414.7 MB, free: 20.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.448e-05/0.2703, allocations: 326.8 kB / 415 MB, free: 20.49 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002166/0.2705, allocations: 51.97 kB / 415 MB, free: 20.44 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002251/0.2708, allocations: 77.67 kB / 415.1 MB, free: 20.36 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004543/0.2713, allocations: 355.3 kB / 415.4 MB, free: 19.95 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.2713, allocations: 0 / 415.4 MB, free: 19.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0008317/0.2721, allocations: 380.3 kB / 415.8 MB, free: 19.55 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.515e-05/0.2722, allocations: 122.8 kB / 415.9 MB, free: 19.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.2722, allocations: 0 / 415.9 MB, free: 19.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.2723, allocations: 0 / 415.9 MB, free: 19.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.504e-05/0.2723, allocations: 7.984 kB / 415.9 MB, free: 19.4 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.2723, allocations: 3.938 kB / 415.9 MB, free: 19.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002499/0.2726, allocations: 11.94 kB / 416 MB, free: 19.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001059/0.2727, allocations: 63.94 kB / 416 MB, free: 19.32 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.nRXFERGATE.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,e_table.y,x_table.y,nRXFERGATE.nextstate,nRXFERGATE.yy,$PRE.nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.y_old,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004611/0.2732, allocations: 366.7 kB / 416.4 MB, free: 18.93 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.944e-05/0.2733, allocations: 43.52 kB / 416.4 MB, free: 18.89 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001705/0.2734, allocations: 59.16 kB / 416.5 MB, free: 18.82 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.2735, allocations: 4 kB / 416.5 MB, free: 18.81 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.2735, allocations: 128 / 416.5 MB, free: 18.81 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.2735, allocations: 4 kB / 416.5 MB, free: 18.81 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001346/0.2748, allocations: 0.8243 MB / 417.3 MB, free: 17.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.2749, allocations: 11.88 kB / 417.3 MB, free: 17.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.54e-06/0.2749, allocations: 0 / 417.3 MB, free: 17.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.217e-06/0.2749, allocations: 0 / 417.3 MB, free: 17.89 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.717e-05/0.2749, allocations: 15.98 kB / 417.3 MB, free: 17.88 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.305e-06/0.275, allocations: 0 / 417.3 MB, free: 17.88 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.275, allocations: 3.938 kB / 417.3 MB, free: 17.88 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007988/0.2758, allocations: 0.5369 MB / 417.9 MB, free: 17.3 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003953/0.2762, allocations: 248.4 kB / 418.1 MB, free: 17.04 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.556e-05/0.2763, allocations: 4 kB / 418.1 MB, free: 17.03 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002186/0.2765, allocations: 23.98 kB / 418.2 MB, free: 17.01 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001547/0.2767, allocations: 23.91 kB / 418.2 MB, free: 16.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.701e-05/0.2768, allocations: 60 kB / 418.2 MB, free: 16.93 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006639/0.2774, allocations: 386.9 kB / 418.6 MB, free: 16.55 MB / 298.7 MB Notification: Performance of sort global known variables: time 2e-07/0.2775, allocations: 0 / 418.6 MB, free: 16.55 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004885/0.278, allocations: 40 kB / 418.7 MB, free: 16.51 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,nRXFERGATE.nextstate,nRXFERGATE.yy,nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.y_old,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,nRXFERGATE.yy,nRXFERGATE.nextstate,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.t_next,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,nRXFERGATE.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001698/0.2781, allocations: 121.8 kB / 418.8 MB, free: 16.38 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005981/0.2787, allocations: 437.5 kB / 419.2 MB, free: 15.91 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.2788, allocations: 0 / 419.2 MB, free: 15.91 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003469/0.2791, allocations: 373.6 kB / 419.6 MB, free: 15.49 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008341/0.28, allocations: 106 kB / 419.7 MB, free: 15.39 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001398/0.2814, allocations: 0.7795 MB / 420.4 MB, free: 14.58 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004041/0.2818, allocations: 0.7986 MB / 421.2 MB, free: 13.76 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.519e-05/0.2818, allocations: 11.44 kB / 421.3 MB, free: 13.75 MB / 298.7 MB Notification: Performance of SimCode: time 3.4e-07/0.2818, allocations: 4 kB / 421.3 MB, free: 13.74 MB / 298.7 MB Notification: Performance of Templates: time 0.005069/0.2869, allocations: 2.656 MB / 423.9 MB, free: 11.04 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NRXFER.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NRXFER.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NRXFER.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NRXFER --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NRXFER.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NRXFER_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/NRXFER/NRXFER.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NRXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches