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.006817/0.006821, allocations: 182.8 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.822/3.822, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001694/0.001694, allocations: 97.48 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006184/0.0006185, allocations: 8 kB / 327 MB, free: 216 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4861/0.4868, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002839/0.4897, allocations: 1.191 MB / 375.7 MB, free: 44.47 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003783/0.4936, allocations: 0.8539 MB / 376.6 MB, free: 43.85 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.642e-05/0.4937, allocations: 0 / 376.6 MB, free: 43.85 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000109/0.4939, allocations: 5.062 kB / 376.6 MB, free: 43.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001423/0.494, allocations: 16.41 kB / 376.6 MB, free: 43.83 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003821/0.4944, allocations: 35.42 kB / 376.6 MB, free: 43.8 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001929/0.4947, allocations: 74.66 kB / 376.7 MB, free: 43.75 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001378/0.4948, allocations: 16.25 kB / 376.7 MB, free: 43.74 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001071/0.4959, allocations: 423.1 kB / 377.1 MB, free: 43.57 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002315/0.4962, allocations: 74.66 kB / 377.2 MB, free: 43.55 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.154e-05/0.4963, allocations: 3.125 kB / 377.2 MB, free: 43.55 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.268e-05/0.4964, allocations: 3.562 kB / 377.2 MB, free: 43.55 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001461/0.4965, allocations: 60.3 kB / 377.3 MB, free: 43.52 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001127/0.4967, allocations: 76.58 kB / 377.3 MB, free: 43.45 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005098/0.4972, allocations: 296.2 kB / 377.6 MB, free: 43.23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.4972, allocations: 4 kB / 377.6 MB, free: 43.23 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.727e-06/0.4972, allocations: 1.25 kB / 377.6 MB, free: 43.23 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.011e-05/0.4973, allocations: 3.938 kB / 377.6 MB, free: 43.23 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.001064/0.4984, allocations: 0.6596 MB / 378.3 MB, free: 42.56 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.099e-05/0.4984, allocations: 9.594 kB / 378.3 MB, free: 42.56 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001533/0.4986, allocations: 38.09 kB / 378.3 MB, free: 42.54 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004945/0.4991, allocations: 257.3 kB / 378.6 MB, free: 42.29 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.96e-05/0.4992, allocations: 12.41 kB / 378.6 MB, free: 42.28 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.861e-05/0.4993, allocations: 7.906 kB / 378.6 MB, free: 42.28 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006398/0.5, allocations: 132.8 kB / 378.7 MB, free: 42.19 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.645e-05/0.5, allocations: 0 / 378.7 MB, free: 42.19 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.212e-05/0.5001, allocations: 3.438 kB / 378.8 MB, free: 42.19 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.5001, allocations: 1.375 kB / 378.8 MB, free: 42.19 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003475/0.5005, allocations: 57.44 kB / 378.8 MB, free: 42.17 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00138/0.5019, allocations: 470.3 kB / 379.3 MB, free: 41.75 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004835/0.5024, allocations: 100.1 kB / 379.4 MB, free: 41.68 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.75e-05/0.5025, allocations: 0 / 379.4 MB, free: 41.68 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006635/0.5031, allocations: 202.5 kB / 379.6 MB, free: 41.52 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 4.949e-06/0.5032, allocations: 0 / 379.6 MB, free: 41.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.001996/0.5052, allocations: 0.6298 MB / 380.2 MB, free: 41.04 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/0.5054, allocations: 173.1 kB / 380.4 MB, free: 40.84 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001546/0.507, allocations: 0.5126 MB / 380.9 MB, free: 40.49 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001146/0.5071, allocations: 29.67 kB / 380.9 MB, free: 40.46 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.519e-05/0.5073, allocations: 160.9 kB / 381.1 MB, free: 40.3 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.266e-05/0.5074, allocations: 31.33 kB / 381.1 MB, free: 40.28 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.773e-05/0.5074, allocations: 3.031 kB / 381.1 MB, free: 40.28 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.669e-05/0.5075, allocations: 320.4 kB / 381.4 MB, free: 39.96 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00034/0.5079, allocations: 54.66 kB / 381.5 MB, free: 39.94 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003463/0.5083, allocations: 79.8 kB / 381.5 MB, free: 39.89 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003735/0.5087, allocations: 167.9 kB / 381.7 MB, free: 39.73 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.5087, allocations: 0 / 381.7 MB, free: 39.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.001269/0.51, allocations: 373 kB / 382.1 MB, free: 39.5 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001344/0.5102, allocations: 129.4 kB / 382.2 MB, free: 39.36 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.5102, allocations: 3.938 kB / 382.2 MB, free: 39.35 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.904e-05/0.5102, allocations: 1.219 kB / 382.2 MB, free: 39.35 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.641e-05/0.5103, allocations: 1.25 kB / 382.2 MB, free: 39.35 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.198e-05/0.5103, allocations: 1.156 kB / 382.2 MB, free: 39.35 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000449/0.5108, allocations: 21.92 kB / 382.2 MB, free: 39.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001656/0.511, allocations: 57.38 kB / 382.3 MB, free: 39.34 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.0008594/0.5119, allocations: 365.2 kB / 382.6 MB, free: 39.02 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001696/0.5121, allocations: 44.08 kB / 382.7 MB, free: 38.99 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002693/0.5123, allocations: 66.98 kB / 382.7 MB, free: 38.95 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.939e-06/0.5124, allocations: 1.266 kB / 382.7 MB, free: 38.95 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.226e-06/0.5124, allocations: 3.938 kB / 382.7 MB, free: 38.94 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.022e-05/0.5124, allocations: 9.172 kB / 382.8 MB, free: 38.93 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002218/0.5147, allocations: 0.8179 MB / 383.6 MB, free: 38.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.028e-05/0.5147, allocations: 1.406 kB / 383.6 MB, free: 38.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.958e-05/0.5148, allocations: 3.984 kB / 383.6 MB, free: 38.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-05/0.5148, allocations: 0 / 383.6 MB, free: 38.27 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.958e-05/0.5149, allocations: 15.47 kB / 383.6 MB, free: 38.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.652e-06/0.5149, allocations: 0 / 383.6 MB, free: 38.27 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.5149, allocations: 1.375 kB / 383.6 MB, free: 38.27 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001588/0.5165, allocations: 0.5374 MB / 384.1 MB, free: 37.88 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008088/0.5174, allocations: 246.2 kB / 384.4 MB, free: 37.67 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000139/0.5176, allocations: 11.19 kB / 384.4 MB, free: 37.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003992/0.518, allocations: 13.92 kB / 384.4 MB, free: 37.66 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002084/0.5182, allocations: 31.34 kB / 384.4 MB, free: 37.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001505/0.5184, allocations: 60.14 kB / 384.5 MB, free: 37.63 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001236/0.5196, allocations: 386.6 kB / 384.9 MB, free: 37.39 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.483e-06/0.5197, allocations: 0 / 384.9 MB, free: 37.39 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007911/0.5205, allocations: 41.84 kB / 384.9 MB, free: 37.39 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.0002639/0.5208, allocations: 116.6 kB / 385 MB, free: 37.29 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001109/0.5219, allocations: 437.8 kB / 385.4 MB, free: 36.92 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.01e-06/0.522, allocations: 0 / 385.4 MB, free: 36.92 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006529/0.5226, allocations: 383.8 kB / 385.8 MB, free: 36.57 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001272/0.5239, allocations: 99.44 kB / 385.9 MB, free: 36.53 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002685/0.5267, allocations: 0.7756 MB / 386.7 MB, free: 35.95 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006148/0.5273, allocations: 0.818 MB / 387.5 MB, free: 35.11 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.046e-05/0.5274, allocations: 15.38 kB / 387.5 MB, free: 35.09 MB / 298.7 MB Notification: Performance of SimCode: time 1.243e-06/0.5274, allocations: 0 / 387.5 MB, free: 35.09 MB / 298.7 MB Notification: Performance of Templates: time 0.009038/0.5365, allocations: 2.635 MB / 390.2 MB, free: 32.41 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/jenkins1/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