Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NRXFER.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: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NRXFER,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_NRXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NRXFER,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_NRXFER",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000869/0.0008691, allocations: 174.9 kB / 16.72 MB, free: 4.957 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.08/1.08, 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.0006608/0.0006608, allocations: 90.34 kB / 271.2 MB, free: 8.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002603/0.0002603, allocations: 12 kB / 327.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.166/0.1663, allocations: 47.58 MB / 375.2 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NRXFER): time 0.001102/0.1674, allocations: 1.195 MB / 376.4 MB, free: 44.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001282/0.1687, allocations: 0.8497 MB / 377.2 MB, free: 43.83 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.155e-05/0.1688, allocations: 4 kB / 377.2 MB, free: 43.82 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 6.174e-05/0.1689, allocations: 5.078 kB / 377.2 MB, free: 43.82 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.001e-05/0.1689, allocations: 19.2 kB / 377.3 MB, free: 43.8 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001834/0.1691, allocations: 28.31 kB / 377.3 MB, free: 43.79 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001093/0.1692, allocations: 105.1 kB / 377.4 MB, free: 43.72 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.157e-05/0.1693, allocations: 20.2 kB / 377.4 MB, free: 43.71 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004605/0.1698, allocations: 0.4886 MB / 377.9 MB, free: 43.51 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001022/0.1699, allocations: 69.61 kB / 378 MB, free: 43.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.84e-05/0.17, allocations: 3.438 kB / 378 MB, free: 43.48 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.957e-05/0.17, allocations: 3.375 kB / 378 MB, free: 43.48 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.601e-05/0.1701, allocations: 69.27 kB / 378 MB, free: 43.45 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.517e-05/0.1702, allocations: 129.5 kB / 378.2 MB, free: 43.34 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001862/0.1704, allocations: 291.4 kB / 378.5 MB, free: 43.13 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.1704, allocations: 1.125 kB / 378.5 MB, free: 43.13 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1704, allocations: 0 / 378.5 MB, free: 43.13 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.1704, allocations: 0 / 378.5 MB, free: 43.13 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.0004496/0.1708, allocations: 0.6613 MB / 379.1 MB, free: 42.46 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.491e-05/0.1709, allocations: 9.906 kB / 379.1 MB, free: 42.46 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.99e-05/0.1709, allocations: 39.25 kB / 379.2 MB, free: 42.42 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.633e-05/0.171, allocations: 34.69 kB / 379.2 MB, free: 42.4 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001843/0.1712, allocations: 277.7 kB / 379.5 MB, free: 42.12 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.884e-05/0.1712, allocations: 9.344 kB / 379.5 MB, free: 42.12 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.473e-05/0.1712, allocations: 7.625 kB / 379.5 MB, free: 42.12 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000249/0.1715, allocations: 130.1 kB / 379.6 MB, free: 42.04 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.712e-06/0.1715, allocations: 0 / 379.6 MB, free: 42.04 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.109e-05/0.1715, allocations: 4.406 kB / 379.6 MB, free: 42.04 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.597e-06/0.1715, allocations: 4 kB / 379.6 MB, free: 42.04 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000123/0.1717, allocations: 66.3 kB / 379.7 MB, free: 42 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004769/0.1722, allocations: 459.9 kB / 380.1 MB, free: 41.59 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001448/0.1723, allocations: 100.7 kB / 380.2 MB, free: 41.53 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001246/0.1724, allocations: 87.91 kB / 380.3 MB, free: 41.48 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.482e-06/0.1725, allocations: 5.062 kB / 380.3 MB, free: 41.47 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002504/0.1727, allocations: 203 kB / 380.5 MB, free: 41.3 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.552e-06/0.1727, allocations: 0 / 380.5 MB, free: 41.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006578/0.1734, allocations: 482.8 kB / 381 MB, free: 41.02 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.199e-05/0.1734, allocations: 168.7 kB / 381.2 MB, free: 40.82 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004964/0.1739, allocations: 0.5088 MB / 381.7 MB, free: 40.48 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.087e-05/0.174, allocations: 38.98 kB / 381.7 MB, free: 40.44 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.436e-05/0.174, allocations: 96.08 kB / 381.8 MB, free: 40.35 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.096e-05/0.174, allocations: 31.02 kB / 381.8 MB, free: 40.32 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.675e-05/0.1741, allocations: 2.75 kB / 381.8 MB, free: 40.32 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.564e-05/0.1741, allocations: 326.5 kB / 382.1 MB, free: 40 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001091/0.1742, allocations: 59.81 kB / 382.2 MB, free: 39.97 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001078/0.1743, allocations: 74.92 kB / 382.3 MB, free: 39.93 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00023/0.1746, allocations: 353.6 kB / 382.6 MB, free: 39.59 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.1746, allocations: 0 / 382.6 MB, free: 39.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004279/0.175, allocations: 383.4 kB / 383 MB, free: 39.35 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.429e-05/0.1751, allocations: 125.6 kB / 383.1 MB, free: 39.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.047e-06/0.1751, allocations: 0 / 383.1 MB, free: 39.21 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.116e-05/0.1751, allocations: 1.469 kB / 383.1 MB, free: 39.21 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.482e-05/0.1751, allocations: 5.156 kB / 383.1 MB, free: 39.21 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.551e-06/0.1751, allocations: 9.453 kB / 383.1 MB, free: 39.2 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001403/0.1753, allocations: 18 kB / 383.2 MB, free: 39.2 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.039e-05/0.1753, allocations: 56.69 kB / 383.2 MB, free: 39.19 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.000229/0.1756, allocations: 365.5 kB / 383.6 MB, free: 38.87 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.084e-05/0.1756, allocations: 43.5 kB / 383.6 MB, free: 38.85 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.887e-05/0.1757, allocations: 71.22 kB / 383.7 MB, free: 38.8 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.1757, allocations: 1.156 kB / 383.7 MB, free: 38.8 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.1757, allocations: 0 / 383.7 MB, free: 38.8 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.1757, allocations: 1.5 kB / 383.7 MB, free: 38.8 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007196/0.1765, allocations: 0.8172 MB / 384.5 MB, free: 38.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.1765, allocations: 1.281 kB / 384.5 MB, free: 38.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.958e-06/0.1765, allocations: 0 / 384.5 MB, free: 38.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.1765, allocations: 0.9375 kB / 384.5 MB, free: 38.14 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.6e-05/0.1765, allocations: 18.55 kB / 384.5 MB, free: 38.13 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.1765, allocations: 0 / 384.5 MB, free: 38.13 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.1765, allocations: 5.062 kB / 384.5 MB, free: 38.13 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005179/0.1771, allocations: 0.5204 MB / 385 MB, free: 37.76 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002301/0.1773, allocations: 257.9 kB / 385.3 MB, free: 37.54 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.123e-05/0.1774, allocations: 11.22 kB / 385.3 MB, free: 37.53 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001293/0.1775, allocations: 9.219 kB / 385.3 MB, free: 37.53 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.257e-05/0.1776, allocations: 39.45 kB / 385.4 MB, free: 37.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.859e-05/0.1776, allocations: 55.91 kB / 385.4 MB, free: 37.5 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003613/0.178, allocations: 383.4 kB / 385.8 MB, free: 37.26 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.178, allocations: 0 / 385.8 MB, free: 37.26 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002542/0.1783, allocations: 40.59 kB / 385.8 MB, free: 37.26 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.0006616/0.1789, allocations: 1.107 MB / 386.9 MB, free: 36.3 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003311/0.1793, allocations: 437.5 kB / 387.4 MB, free: 35.82 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.1793, allocations: 0 / 387.4 MB, free: 35.82 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001945/0.1795, allocations: 377.6 kB / 387.7 MB, free: 35.4 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005068/0.18, allocations: 112.9 kB / 387.8 MB, free: 35.3 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001754/0.1818, allocations: 1.601 MB / 389.4 MB, free: 33.64 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002067/0.182, allocations: 0.8022 MB / 390.2 MB, free: 32.82 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.191e-05/0.182, allocations: 19.44 kB / 390.3 MB, free: 32.8 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.182, allocations: 0 / 390.3 MB, free: 32.8 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.624/3.806, allocations: 2.276 MB / 392.5 MB, free: 30.52 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NRXFER.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NRXFER.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NRXFER_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_NRXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_NRXFER.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NRXFER.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NRXFER_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/NRXFER/NRXFER.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NRXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches