Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator",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.0008178/0.000818, allocations: 87.02 kB / 17.35 MB, free: 6.324 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.0008813/0.0008813, allocations: 173 kB / 18.26 MB, free: 5.484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.184/1.184, allocations: 223.3 MB / 242.3 MB, free: 204 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1676/0.1676, allocations: 44.25 MB / 337.7 MB, free: 2.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00026/0.0002598, allocations: 9.031 kB / 410.4 MB, free: 27.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08526/0.08554, allocations: 61.93 MB / 472.4 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.001539/0.08711, allocations: 1.33 MB / 473.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007225/0.08785, allocations: 0.5417 MB / 474.2 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.184e-05/0.08792, allocations: 0 / 474.2 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.653e-05/0.08802, allocations: 11.86 kB / 474.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.276e-05/0.08807, allocations: 11.88 kB / 474.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002751/0.08835, allocations: 82.78 kB / 474.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001228/0.08848, allocations: 103.7 kB / 474.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.949e-05/0.08858, allocations: 28.27 kB / 474.5 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.791e-05/0.08864, allocations: 39.83 kB / 474.5 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.976e-05/0.08871, allocations: 39.72 kB / 474.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.547e-05/0.08873, allocations: 4 kB / 474.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.158e-05/0.08876, allocations: 4 kB / 474.6 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.146e-05/0.08879, allocations: 19.92 kB / 474.6 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.167e-05/0.08884, allocations: 57.5 kB / 474.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.318e-05/0.08894, allocations: 75.62 kB / 474.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.08895, allocations: 0 / 474.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.08896, allocations: 0 / 474.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.346e-06/0.08896, allocations: 0 / 474.7 MB, free: 10.88 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005313/0.0895, allocations: 415.1 kB / 475.1 MB, free: 10.42 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.264e-05/0.08954, allocations: 8.031 kB / 475.1 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.751e-05/0.08958, allocations: 38.75 kB / 475.2 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.907e-05/0.08962, allocations: 12.84 kB / 475.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001739/0.08979, allocations: 200.1 kB / 475.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.75e-05/0.08982, allocations: 12.34 kB / 475.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.145e-05/0.08984, allocations: 8.375 kB / 475.4 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002599/0.09011, allocations: 113.8 kB / 475.5 MB, free: 9.984 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.841e-06/0.09013, allocations: 0 / 475.5 MB, free: 9.984 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.928e-06/0.09014, allocations: 0 / 475.5 MB, free: 9.984 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.09015, allocations: 4 kB / 475.5 MB, free: 9.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001494/0.0903, allocations: 55.97 kB / 475.6 MB, free: 9.926 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006019/0.09091, allocations: 404.4 kB / 475.9 MB, free: 9.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003519/0.09128, allocations: 114.5 kB / 476.1 MB, free: 9.359 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001112/0.0914, allocations: 40.92 kB / 476.1 MB, free: 9.316 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.084e-05/0.09142, allocations: 3.984 kB / 476.1 MB, free: 9.312 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002499/0.09167, allocations: 107.3 kB / 476.2 MB, free: 9.195 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.193e-06/0.09168, allocations: 4 kB / 476.2 MB, free: 9.191 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004328/0.09212, allocations: 153.5 kB / 476.4 MB, free: 9.035 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.685e-05/0.09217, allocations: 59.34 kB / 476.4 MB, free: 8.965 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000112/0.09229, allocations: 149.7 kB / 476.6 MB, free: 8.809 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.849e-05/0.09231, allocations: 29.7 kB / 476.6 MB, free: 8.773 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.346e-05/0.09237, allocations: 96.12 kB / 476.7 MB, free: 8.676 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.309e-05/0.0924, allocations: 27.64 kB / 476.7 MB, free: 8.648 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.748e-05/0.09243, allocations: 21.7 kB / 476.7 MB, free: 8.621 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001032/0.09254, allocations: 322.8 kB / 477.1 MB, free: 8.297 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001179/0.09266, allocations: 39.98 kB / 477.1 MB, free: 8.258 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001271/0.0928, allocations: 57.62 kB / 477.1 MB, free: 8.195 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000208/0.09302, allocations: 89.61 kB / 477.2 MB, free: 8.102 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.09302, allocations: 0 / 477.2 MB, free: 8.102 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000275/0.0933, allocations: 125.5 kB / 477.4 MB, free: 7.973 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.133e-05/0.09333, allocations: 11.94 kB / 477.4 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.09333, allocations: 0 / 477.4 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.784e-06/0.09335, allocations: 0 / 477.4 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.178e-05/0.09344, allocations: 24.02 kB / 477.4 MB, free: 7.938 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.058e-06/0.09345, allocations: 0 / 477.4 MB, free: 7.938 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.046e-05/0.09355, allocations: 20.06 kB / 477.4 MB, free: 7.918 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.123e-06/0.09356, allocations: 4 kB / 477.4 MB, free: 7.914 MB / 350.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: 7 ($whenCondition1,change.u,$PRE.change.u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * 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 8.208e-05/0.09365, allocations: 121.8 kB / 477.5 MB, free: 7.785 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.88e-05/0.09368, allocations: 19.83 kB / 477.6 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.695e-05/0.09372, allocations: 12.72 kB / 477.6 MB, free: 7.754 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.482e-06/0.09373, allocations: 0 / 477.6 MB, free: 7.754 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.09373, allocations: 0 / 477.6 MB, free: 7.754 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.09374, allocations: 0 / 477.6 MB, free: 7.754 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004641/0.09421, allocations: 402.4 kB / 478 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.09422, allocations: 0 / 478 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.683e-05/0.09431, allocations: 15.94 kB / 478 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.09432, allocations: 288 / 478 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.165e-05/0.09434, allocations: 7.984 kB / 478 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.656e-06/0.09435, allocations: 4 kB / 478 MB, free: 7.277 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.09435, allocations: 3.938 kB / 478 MB, free: 7.273 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004223/0.09478, allocations: 263.3 kB / 478.2 MB, free: 7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.725e-05/0.09483, allocations: 85.05 kB / 478.3 MB, free: 6.898 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.769e-05/0.09485, allocations: 4 kB / 478.3 MB, free: 6.895 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001382/0.09499, allocations: 23.97 kB / 478.4 MB, free: 6.871 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.652e-05/0.09505, allocations: 20.03 kB / 478.4 MB, free: 6.852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.651e-06/0.09506, allocations: 4 kB / 478.4 MB, free: 6.848 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.653e-05/0.09513, allocations: 114.8 kB / 478.5 MB, free: 6.738 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.09514, allocations: 3.938 kB / 478.5 MB, free: 6.734 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002182/0.09536, allocations: 19.94 kB / 478.5 MB, free: 6.715 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 5 (integrator.reset,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0006252/0.09599, allocations: 0.7953 MB / 479.3 MB, free: 5.895 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000264/0.09627, allocations: 99.92 kB / 479.4 MB, free: 5.797 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.09628, allocations: 4 kB / 479.4 MB, free: 5.793 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001282/0.09641, allocations: 44.03 kB / 479.5 MB, free: 5.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002832/0.0967, allocations: 16 kB / 479.5 MB, free: 5.734 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001832/0.09854, allocations: 1.692 MB / 481.2 MB, free: 3.953 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002369/0.09879, allocations: 0.6965 MB / 481.9 MB, free: 3.23 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.967e-05/0.09884, allocations: 4.562 kB / 481.9 MB, free: 3.227 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.664e-05/0.0989, allocations: 35.42 kB / 481.9 MB, free: 3.191 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.09891, allocations: 0 / 481.9 MB, free: 3.191 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01112/0.11, allocations: 2.25 MB / 484.2 MB, free: 1.055 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001942/0.1102, allocations: 188.4 kB / 484.3 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.675/1.785, allocations: 0 / 484.3 MB, free: 0.8008 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches