Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.NXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nXFERGATE.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER") translateModel(Modelica.Electrical.Digital.Examples.NXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nXFERGATE.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00132/0.00132, allocations: 178.8 kB / 16.41 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.61/1.61, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008029/0.0008034, allocations: 92.8 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004282/0.0004282, allocations: 12 kB / 327 MB, free: 200 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2511/0.2516, allocations: 47.57 MB / 374.5 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.001443/0.2531, allocations: 1.197 MB / 375.7 MB, free: 44.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001469/0.2545, allocations: 0.8516 MB / 376.6 MB, free: 43.85 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.759e-05/0.2546, allocations: 1.031 kB / 376.6 MB, free: 43.85 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.452e-05/0.2547, allocations: 8.984 kB / 376.6 MB, free: 43.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.257e-05/0.2548, allocations: 7.719 kB / 376.6 MB, free: 43.84 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002282/0.255, allocations: 43.31 kB / 376.7 MB, free: 43.8 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001276/0.2551, allocations: 101.5 kB / 376.8 MB, free: 43.75 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.906e-05/0.2552, allocations: 20.44 kB / 376.8 MB, free: 43.73 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005247/0.2558, allocations: 495.8 kB / 377.3 MB, free: 43.54 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001225/0.2559, allocations: 78.09 kB / 377.3 MB, free: 43.5 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.196e-05/0.256, allocations: 3.438 kB / 377.3 MB, free: 43.5 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.151e-05/0.256, allocations: 3.344 kB / 377.3 MB, free: 43.5 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.385e-05/0.2561, allocations: 61.33 kB / 377.4 MB, free: 43.48 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.088e-05/0.2561, allocations: 72.11 kB / 377.5 MB, free: 43.41 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002171/0.2564, allocations: 292.1 kB / 377.8 MB, free: 43.2 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.2564, allocations: 1.469 kB / 377.8 MB, free: 43.2 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2564, allocations: 0 / 377.8 MB, free: 43.2 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.2564, allocations: 4 kB / 377.8 MB, free: 43.2 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.0006194/0.257, allocations: 0.6641 MB / 378.4 MB, free: 42.53 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.2571, allocations: 9.625 kB / 378.4 MB, free: 42.53 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.233e-05/0.2572, allocations: 33.78 kB / 378.5 MB, free: 42.51 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002554/0.2574, allocations: 265.3 kB / 378.7 MB, free: 42.25 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.363e-05/0.2575, allocations: 8.625 kB / 378.7 MB, free: 42.24 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.202e-05/0.2575, allocations: 7.062 kB / 378.7 MB, free: 42.24 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002987/0.2578, allocations: 129.4 kB / 378.9 MB, free: 42.16 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.2578, allocations: 0 / 378.9 MB, free: 42.16 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.49e-05/0.2578, allocations: 16.91 kB / 378.9 MB, free: 42.15 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.2579, allocations: 0 / 378.9 MB, free: 42.15 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001342/0.258, allocations: 58 kB / 378.9 MB, free: 42.12 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005845/0.2586, allocations: 457.6 kB / 379.4 MB, free: 41.72 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001819/0.2588, allocations: 95.8 kB / 379.5 MB, free: 41.66 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001573/0.259, allocations: 89.92 kB / 379.6 MB, free: 41.61 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.063e-05/0.259, allocations: 0 / 379.6 MB, free: 41.61 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003529/0.2593, allocations: 207 kB / 379.8 MB, free: 41.43 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.463e-06/0.2593, allocations: 0 / 379.8 MB, free: 41.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.0007782/0.2601, allocations: 482.3 kB / 380.2 MB, free: 41.14 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.698e-05/0.2602, allocations: 165.4 kB / 380.4 MB, free: 40.95 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005759/0.2608, allocations: 0.5243 MB / 380.9 MB, free: 40.6 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.623e-05/0.2608, allocations: 32.7 kB / 381 MB, free: 40.56 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.711e-05/0.2609, allocations: 98.06 kB / 381.1 MB, free: 40.47 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.559e-05/0.2609, allocations: 30.45 kB / 381.1 MB, free: 40.45 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.59e-05/0.2609, allocations: 2.438 kB / 381.1 MB, free: 40.45 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.516e-05/0.261, allocations: 326.3 kB / 381.4 MB, free: 40.12 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001219/0.2611, allocations: 55.81 kB / 381.5 MB, free: 40.1 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001281/0.2613, allocations: 72.25 kB / 381.5 MB, free: 40.05 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001512/0.2614, allocations: 166.8 kB / 381.7 MB, free: 39.9 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.135e-06/0.2614, allocations: 4.953 kB / 381.7 MB, free: 39.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.00049/0.2619, allocations: 381.7 kB / 382.1 MB, free: 39.65 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.386e-05/0.262, allocations: 121.9 kB / 382.2 MB, free: 39.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.262, allocations: 1.469 kB / 382.2 MB, free: 39.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.262, allocations: 0 / 382.2 MB, free: 39.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.941e-05/0.2621, allocations: 5.406 kB / 382.2 MB, free: 39.52 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.002e-06/0.2621, allocations: 5.266 kB / 382.2 MB, free: 39.51 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001635/0.2622, allocations: 15.09 kB / 382.2 MB, free: 39.51 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.115e-05/0.2623, allocations: 67.89 kB / 382.3 MB, free: 39.49 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.nXFERGATE.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,e_table.y,x_table.y,nXFERGATE.nextstate,nXFERGATE.yy,$PRE.nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.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.000281/0.2626, allocations: 361.8 kB / 382.6 MB, free: 39.18 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.455e-05/0.2627, allocations: 39.86 kB / 382.7 MB, free: 39.16 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.806e-05/0.2628, allocations: 75.28 kB / 382.8 MB, free: 39.1 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.2628, allocations: 0.8125 kB / 382.8 MB, free: 39.1 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.2628, allocations: 0 / 382.8 MB, free: 39.1 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.2628, allocations: 1.094 kB / 382.8 MB, free: 39.1 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000863/0.2637, allocations: 0.8293 MB / 383.6 MB, free: 38.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.2637, allocations: 0 / 383.6 MB, free: 38.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.809e-06/0.2637, allocations: 5 kB / 383.6 MB, free: 38.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.2637, allocations: 0 / 383.6 MB, free: 38.43 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.913e-05/0.2637, allocations: 15.83 kB / 383.6 MB, free: 38.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.2638, allocations: 0 / 383.6 MB, free: 38.43 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.2638, allocations: 0 / 383.6 MB, free: 38.43 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005649/0.2643, allocations: 0.5292 MB / 384.1 MB, free: 38.05 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002669/0.2646, allocations: 249.9 kB / 384.4 MB, free: 37.83 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.428e-05/0.2647, allocations: 11.38 kB / 384.4 MB, free: 37.83 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001378/0.2648, allocations: 12.72 kB / 384.4 MB, free: 37.82 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.2649, allocations: 27.42 kB / 384.4 MB, free: 37.81 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.735e-05/0.265, allocations: 61.06 kB / 384.5 MB, free: 37.8 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004218/0.2654, allocations: 386.9 kB / 384.9 MB, free: 37.55 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2654, allocations: 3.938 kB / 384.9 MB, free: 37.55 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002729/0.2657, allocations: 44.83 kB / 384.9 MB, free: 37.55 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,nXFERGATE.nextstate,nXFERGATE.yy,nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,nXFERGATE.yy,nXFERGATE.nextstate,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.t_next,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,nXFERGATE.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.0001343/0.2659, allocations: 116.3 kB / 385 MB, free: 37.45 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004528/0.2663, allocations: 434.6 kB / 385.5 MB, free: 37.09 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.2663, allocations: 0 / 385.5 MB, free: 37.09 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002575/0.2666, allocations: 381.3 kB / 385.8 MB, free: 36.74 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005654/0.2672, allocations: 105.9 kB / 385.9 MB, free: 36.69 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009694/0.2681, allocations: 0.7787 MB / 386.7 MB, free: 36 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002554/0.2684, allocations: 0.8101 MB / 387.5 MB, free: 35.16 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.803e-05/0.2684, allocations: 11.44 kB / 387.5 MB, free: 35.15 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2684, allocations: 0 / 387.5 MB, free: 35.15 MB / 298.7 MB Notification: Performance of Templates: time 0.003457/0.2719, allocations: 2.666 MB / 390.2 MB, free: 32.43 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/NXFER/NXFER.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches