Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NRXFER.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NRXFER,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_NRXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NRXFER,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_NRXFER",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001536/0.001536, allocations: 104.1 kB / 17.58 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 187.9 kB / 18.5 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.357/1.357, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001344, allocations: 60.12 kB / 280.7 MB, free: 3.082 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07643/0.07779, allocations: 46.64 MB / 327.4 MB, free: 4.379 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NRXFER): time 0.002623/0.08044, allocations: 1.497 MB / 328.9 MB, free: 2.863 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001771/0.08223, allocations: 0.8897 MB / 329.8 MB, free: 1.965 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.788e-05/0.08231, allocations: 0 / 329.8 MB, free: 1.965 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 8.863e-05/0.08242, allocations: 7.875 kB / 329.8 MB, free: 1.957 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 8.115e-05/0.08251, allocations: 27.84 kB / 329.8 MB, free: 1.93 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002795/0.0828, allocations: 47.89 kB / 329.8 MB, free: 1.883 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001957/0.083, allocations: 143.7 kB / 330 MB, free: 1.742 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001065/0.08312, allocations: 20.22 kB / 330 MB, free: 1.719 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005276/0.08365, allocations: 0.5576 MB / 330.6 MB, free: 1.16 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001385/0.0838, allocations: 71.69 kB / 330.6 MB, free: 1.09 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.459e-05/0.08386, allocations: 19.94 kB / 330.7 MB, free: 1.07 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.566e-05/0.0839, allocations: 8 kB / 330.7 MB, free: 1.062 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.244e-05/0.08399, allocations: 67.7 kB / 330.7 MB, free: 0.9961 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001197/0.08411, allocations: 115.2 kB / 330.8 MB, free: 0.8828 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003279/0.08445, allocations: 362.7 kB / 331.2 MB, free: 0.5273 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.08446, allocations: 0 / 331.2 MB, free: 0.5273 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.08447, allocations: 4 kB / 331.2 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.08448, allocations: 0 / 331.2 MB, free: 0.5234 MB / 270.1 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.0007685/0.08525, allocations: 0.7191 MB / 331.9 MB, free: 15.73 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/0.08529, allocations: 8.031 kB / 331.9 MB, free: 15.72 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.649e-05/0.08536, allocations: 46.75 kB / 332 MB, free: 15.67 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.74e-05/0.08543, allocations: 32.56 kB / 332 MB, free: 15.64 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002724/0.08571, allocations: 278.3 kB / 332.3 MB, free: 15.32 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.023e-05/0.08574, allocations: 4.375 kB / 332.3 MB, free: 15.32 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.369e-05/0.08578, allocations: 12.38 kB / 332.3 MB, free: 15.31 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002984/0.08609, allocations: 129.7 kB / 332.4 MB, free: 15.18 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.0861, allocations: 0 / 332.4 MB, free: 15.18 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.442e-05/0.08613, allocations: 4 kB / 332.4 MB, free: 15.17 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.08614, allocations: 0 / 332.4 MB, free: 15.17 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001452/0.08629, allocations: 63.91 kB / 332.5 MB, free: 15.11 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006132/0.08692, allocations: 464.5 kB / 332.9 MB, free: 14.61 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001855/0.08711, allocations: 94.55 kB / 333 MB, free: 14.5 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001495/0.08727, allocations: 84.83 kB / 333.1 MB, free: 14.42 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.146e-05/0.08729, allocations: 8 kB / 333.1 MB, free: 14.41 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003275/0.08763, allocations: 210.7 kB / 333.3 MB, free: 14.18 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.723e-06/0.08764, allocations: 0 / 333.3 MB, free: 14.18 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008163/0.08846, allocations: 476.4 kB / 333.8 MB, free: 13.68 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001123/0.08858, allocations: 166.2 kB / 334 MB, free: 13.48 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000613/0.0892, allocations: 0.5168 MB / 334.5 MB, free: 12.96 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.679e-05/0.08925, allocations: 29.7 kB / 334.5 MB, free: 12.93 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.789e-05/0.08932, allocations: 105.9 kB / 334.6 MB, free: 12.82 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.245e-05/0.08936, allocations: 35.62 kB / 334.6 MB, free: 12.79 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000108/0.08948, allocations: 81.42 kB / 334.7 MB, free: 12.7 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.0896, allocations: 326.8 kB / 335 MB, free: 12.37 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001308/0.08974, allocations: 51.97 kB / 335.1 MB, free: 12.32 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001354/0.08988, allocations: 77.67 kB / 335.2 MB, free: 12.24 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000333/0.09023, allocations: 355.2 kB / 335.5 MB, free: 11.84 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.09024, allocations: 0 / 335.5 MB, free: 11.84 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005298/0.09077, allocations: 380.4 kB / 335.9 MB, free: 11.43 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.17e-05/0.09086, allocations: 126.7 kB / 336 MB, free: 11.29 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.429e-06/0.09088, allocations: 7.938 kB / 336 MB, free: 11.28 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.09089, allocations: 0 / 336 MB, free: 11.28 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.732e-05/0.09092, allocations: 3.938 kB / 336 MB, free: 11.27 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.121e-06/0.09093, allocations: 4.062 kB / 336 MB, free: 11.27 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001354/0.09107, allocations: 19.89 kB / 336 MB, free: 11.25 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.214e-05/0.09114, allocations: 59.94 kB / 336.1 MB, free: 11.19 MB / 286.1 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,nRXFERGATE.inertialDelaySensitive.t_next,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.y_old,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.x,$PRE.nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.yy,nRXFERGATE.nextstate,x_table.y,e_table.y,$whenCondition2,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003226/0.09147, allocations: 362.7 kB / 336.5 MB, free: 10.8 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.044e-05/0.09153, allocations: 35.62 kB / 336.5 MB, free: 10.77 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.13e-05/0.09163, allocations: 63.16 kB / 336.6 MB, free: 10.7 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.706e-06/0.09164, allocations: 4 kB / 336.6 MB, free: 10.7 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.09165, allocations: 0 / 336.6 MB, free: 10.7 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.09166, allocations: 0 / 336.6 MB, free: 10.7 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009193/0.09258, allocations: 0.8173 MB / 337.4 MB, free: 9.801 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.0926, allocations: 0 / 337.4 MB, free: 9.801 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.604e-06/0.09261, allocations: 11.98 kB / 337.4 MB, free: 9.789 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.317e-06/0.09262, allocations: 3.984 kB / 337.4 MB, free: 9.785 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.866e-05/0.09265, allocations: 15.98 kB / 337.4 MB, free: 9.77 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.09266, allocations: 4 kB / 337.4 MB, free: 9.766 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.09267, allocations: 4.125 kB / 337.4 MB, free: 9.762 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006209/0.09329, allocations: 0.5291 MB / 337.9 MB, free: 9.191 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000294/0.0936, allocations: 248.4 kB / 338.2 MB, free: 8.93 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.704e-05/0.09366, allocations: 12 kB / 338.2 MB, free: 8.918 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001302/0.0938, allocations: 15.98 kB / 338.2 MB, free: 8.902 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001014/0.09391, allocations: 35.84 kB / 338.2 MB, free: 8.867 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.675e-05/0.09398, allocations: 55.94 kB / 338.3 MB, free: 8.812 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004323/0.09442, allocations: 382.9 kB / 338.7 MB, free: 8.438 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09442, allocations: 0 / 338.7 MB, free: 8.438 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002907/0.09472, allocations: 44 kB / 338.7 MB, free: 8.395 MB / 286.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009357/0.09566, allocations: 1.104 MB / 339.8 MB, free: 7.238 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004939/0.09617, allocations: 441.5 kB / 340.3 MB, free: 6.758 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.09618, allocations: 0 / 340.3 MB, free: 6.758 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003096/0.0965, allocations: 369.6 kB / 340.6 MB, free: 6.348 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006017/0.09711, allocations: 116.6 kB / 340.7 MB, free: 6.234 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003225/0.1003, allocations: 2.746 MB / 343.5 MB, free: 3.379 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004411/0.1008, allocations: 0.806 MB / 344.3 MB, free: 2.543 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.841e-05/0.1009, allocations: 8.656 kB / 344.3 MB, free: 2.535 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.57e-05/0.1009, allocations: 31.42 kB / 344.3 MB, free: 2.504 MB / 286.1 MB Notification: Performance of SimCode: time 4.1e-07/0.1009, allocations: 3.938 kB / 344.3 MB, free: 2.5 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02343/0.1244, allocations: 6.003 MB / 350.3 MB, free: 12.34 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.96/8.084, allocations: 3.75 kB / 350.3 MB, free: 12.34 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NRXFER.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NRXFER.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NRXFER_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_NRXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_NRXFER.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NRXFER.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NRXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches