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.001359/0.001359, allocations: 175.5 kB / 16.72 MB, free: 5.082 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.423/1.423, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.0008775/0.0008775, allocations: 97.39 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003937/0.000394, allocations: 12 kB / 327.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2793/0.2797, allocations: 47.57 MB / 375.1 MB, free: 45.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.001439/0.2812, allocations: 1.198 MB / 376.3 MB, free: 44.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001518/0.2828, allocations: 0.8462 MB / 377.1 MB, free: 43.86 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.199e-05/0.2828, allocations: 1.719 kB / 377.1 MB, free: 43.86 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.394e-05/0.2829, allocations: 5.516 kB / 377.1 MB, free: 43.85 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.025e-05/0.283, allocations: 18.09 kB / 377.2 MB, free: 43.84 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002429/0.2833, allocations: 36.45 kB / 377.2 MB, free: 43.81 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001488/0.2834, allocations: 104.8 kB / 377.3 MB, free: 43.75 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001241/0.2836, allocations: 20.53 kB / 377.3 MB, free: 43.73 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000633/0.2842, allocations: 495.2 kB / 377.8 MB, free: 43.54 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001574/0.2844, allocations: 74.3 kB / 377.9 MB, free: 43.51 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.296e-05/0.2844, allocations: 7.688 kB / 377.9 MB, free: 43.5 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.374e-05/0.2845, allocations: 3.344 kB / 377.9 MB, free: 43.5 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.161e-05/0.2846, allocations: 64.17 kB / 377.9 MB, free: 43.47 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001255/0.2847, allocations: 130.8 kB / 378.1 MB, free: 43.37 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002483/0.285, allocations: 287.6 kB / 378.4 MB, free: 43.16 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.285, allocations: 4 kB / 378.4 MB, free: 43.15 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.285, allocations: 0 / 378.4 MB, free: 43.15 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.285, allocations: 0.875 kB / 378.4 MB, free: 43.15 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.0005654/0.2856, allocations: 0.653 MB / 379 MB, free: 42.49 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/0.2856, allocations: 10.16 kB / 379 MB, free: 42.49 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.475e-05/0.2857, allocations: 38.16 kB / 379.1 MB, free: 42.47 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002282/0.286, allocations: 273.8 kB / 379.3 MB, free: 42.2 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.329e-05/0.286, allocations: 12.64 kB / 379.3 MB, free: 42.19 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.04e-05/0.286, allocations: 11.62 kB / 379.3 MB, free: 42.19 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003257/0.2864, allocations: 134.6 kB / 379.5 MB, free: 42.1 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.286e-06/0.2864, allocations: 0 / 379.5 MB, free: 42.1 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.519e-05/0.2864, allocations: 4.031 kB / 379.5 MB, free: 42.1 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.2864, allocations: 1.312 kB / 379.5 MB, free: 42.1 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001399/0.2866, allocations: 64.59 kB / 379.5 MB, free: 42.07 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006095/0.2872, allocations: 456.4 kB / 380 MB, free: 41.66 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001734/0.2874, allocations: 99.39 kB / 380.1 MB, free: 41.6 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001483/0.2875, allocations: 86.12 kB / 380.2 MB, free: 41.55 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.189e-05/0.2875, allocations: 0 / 380.2 MB, free: 41.55 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003147/0.2879, allocations: 210.6 kB / 380.4 MB, free: 41.38 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.873e-06/0.2879, allocations: 0 / 380.4 MB, free: 41.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.0008094/0.2887, allocations: 480.9 kB / 380.8 MB, free: 41.09 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.74e-05/0.2888, allocations: 172.2 kB / 381 MB, free: 40.89 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006119/0.2894, allocations: 0.5131 MB / 381.5 MB, free: 40.54 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.706e-05/0.2894, allocations: 30.08 kB / 381.6 MB, free: 40.51 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.402e-05/0.2895, allocations: 100.9 kB / 381.7 MB, free: 40.41 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.536e-05/0.2895, allocations: 34.56 kB / 381.7 MB, free: 40.39 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.838e-05/0.2895, allocations: 2.906 kB / 381.7 MB, free: 40.39 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.498e-05/0.2896, allocations: 325.7 kB / 382 MB, free: 40.06 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001193/0.2897, allocations: 60.06 kB / 382.1 MB, free: 40.04 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001253/0.2899, allocations: 76.34 kB / 382.1 MB, free: 39.99 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002724/0.2901, allocations: 349.2 kB / 382.5 MB, free: 39.66 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.2901, allocations: 0 / 382.5 MB, free: 39.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004954/0.2906, allocations: 379.9 kB / 382.9 MB, free: 39.42 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.036e-05/0.2907, allocations: 121.8 kB / 383 MB, free: 39.29 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.209e-06/0.2907, allocations: 1.438 kB / 383 MB, free: 39.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.982e-05/0.2908, allocations: 1.375 kB / 383 MB, free: 39.29 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.302e-05/0.2908, allocations: 11.97 kB / 383 MB, free: 39.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.635e-06/0.2908, allocations: 8.891 kB / 383 MB, free: 39.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001647/0.291, allocations: 10.16 kB / 383 MB, free: 39.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.488e-05/0.2911, allocations: 57.84 kB / 383.1 MB, free: 39.26 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.0003092/0.2914, allocations: 360.9 kB / 383.4 MB, free: 38.95 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.609e-05/0.2914, allocations: 40.16 kB / 383.5 MB, free: 38.93 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.345e-05/0.2915, allocations: 67.53 kB / 383.5 MB, free: 38.88 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.2915, allocations: 5.219 kB / 383.5 MB, free: 38.88 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.309e-06/0.2916, allocations: 4 kB / 383.5 MB, free: 38.87 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.2916, allocations: 0 / 383.5 MB, free: 38.87 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009177/0.2925, allocations: 0.8185 MB / 384.4 MB, free: 38.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.2925, allocations: 1.469 kB / 384.4 MB, free: 38.21 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.608e-06/0.2925, allocations: 0 / 384.4 MB, free: 38.21 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.2925, allocations: 0 / 384.4 MB, free: 38.21 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.156e-05/0.2925, allocations: 22.84 kB / 384.4 MB, free: 38.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.532e-06/0.2926, allocations: 1.344 kB / 384.4 MB, free: 38.2 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.2926, allocations: 3.938 kB / 384.4 MB, free: 38.2 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005793/0.2931, allocations: 0.5248 MB / 384.9 MB, free: 37.82 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002984/0.2935, allocations: 250.2 kB / 385.2 MB, free: 37.61 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.765e-05/0.2935, allocations: 10.19 kB / 385.2 MB, free: 37.6 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001426/0.2937, allocations: 13.78 kB / 385.2 MB, free: 37.6 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001207/0.2938, allocations: 34.73 kB / 385.2 MB, free: 37.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.091e-05/0.2939, allocations: 57.16 kB / 385.3 MB, free: 37.57 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004213/0.2943, allocations: 386.5 kB / 385.6 MB, free: 37.32 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2943, allocations: 7.938 kB / 385.6 MB, free: 37.32 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000303/0.2946, allocations: 42.12 kB / 385.7 MB, free: 37.32 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.0001404/0.2948, allocations: 119.3 kB / 385.8 MB, free: 37.21 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004556/0.2952, allocations: 438 kB / 386.2 MB, free: 36.85 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.2952, allocations: 1.25 kB / 386.2 MB, free: 36.85 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002612/0.2955, allocations: 377.2 kB / 386.6 MB, free: 36.49 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000538/0.2961, allocations: 112.9 kB / 386.7 MB, free: 36.39 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001018/0.2971, allocations: 0.7761 MB / 387.5 MB, free: 35.59 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002706/0.2974, allocations: 0.8062 MB / 388.3 MB, free: 34.75 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.937e-05/0.2974, allocations: 11.44 kB / 388.3 MB, free: 34.74 MB / 298.7 MB Notification: Performance of SimCode: time 3.31e-07/0.2974, allocations: 0 / 388.3 MB, free: 34.74 MB / 298.7 MB Notification: Performance of Templates: time 0.003804/0.3012, allocations: 2.671 MB / 391 MB, free: 32.02 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