Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008618/0.0008619, allocations: 97.52 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001028/0.001028, allocations: 201.3 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.26/1.26, allocations: 227.7 MB / 246.8 MB, free: 11.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1804/0.1804, allocations: 46.18 MB / 345.2 MB, free: 11.41 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002269/0.000227, allocations: 8 kB / 419.6 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08728/0.08752, allocations: 63.55 MB / 483.2 MB, free: 4.098 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.001549/0.08909, allocations: 1.361 MB / 484.5 MB, free: 2.727 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008818/0.08998, allocations: 0.5612 MB / 485.1 MB, free: 2.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.616e-05/0.09006, allocations: 7.938 kB / 485.1 MB, free: 2.152 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.456e-05/0.09015, allocations: 11.86 kB / 485.1 MB, free: 2.141 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.278e-05/0.0902, allocations: 3.938 kB / 485.1 MB, free: 2.137 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002881/0.0905, allocations: 79.41 kB / 485.2 MB, free: 2.062 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000136/0.09065, allocations: 107.8 kB / 485.3 MB, free: 1.957 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.713e-05/0.09075, allocations: 28.2 kB / 485.3 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.54e-05/0.09082, allocations: 35.89 kB / 485.4 MB, free: 1.895 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.035e-05/0.09089, allocations: 35.72 kB / 485.4 MB, free: 1.859 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.443e-05/0.09092, allocations: 8 kB / 485.4 MB, free: 1.852 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.566e-05/0.09094, allocations: 4 kB / 485.4 MB, free: 1.848 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.161e-05/0.09096, allocations: 15.92 kB / 485.4 MB, free: 1.832 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.213e-05/0.09102, allocations: 57.5 kB / 485.5 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001013/0.09113, allocations: 79.62 kB / 485.6 MB, free: 1.691 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.613e-06/0.09114, allocations: 0 / 485.6 MB, free: 1.691 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.41e-07/0.09114, allocations: 0 / 485.6 MB, free: 1.691 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.006e-06/0.09115, allocations: 0 / 485.6 MB, free: 1.691 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.0005318/0.09169, allocations: 403.2 kB / 486 MB, free: 1.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.479e-05/0.09173, allocations: 8.875 kB / 486 MB, free: 1.242 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.943e-05/0.09178, allocations: 38.75 kB / 486 MB, free: 1.195 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.052e-05/0.09181, allocations: 12.78 kB / 486 MB, free: 1.184 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001809/0.092, allocations: 212.1 kB / 486.2 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.761e-05/0.09203, allocations: 8.375 kB / 486.2 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.946e-05/0.09205, allocations: 4.375 kB / 486.2 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000282/0.09234, allocations: 117.7 kB / 486.3 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.341e-06/0.09236, allocations: 0 / 486.3 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.244e-05/0.09237, allocations: 4 kB / 486.3 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.09239, allocations: 4 kB / 486.4 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001642/0.09256, allocations: 51.97 kB / 486.4 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006376/0.0932, allocations: 404.4 kB / 486.8 MB, free: 308 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000357/0.09357, allocations: 114.5 kB / 486.9 MB, free: 184 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001234/0.0937, allocations: 48.86 kB / 487 MB, free: 132 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.11e-05/0.09372, allocations: 0 / 487 MB, free: 132 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000257/0.09399, allocations: 111.3 kB / 487.1 MB, free: 8 kB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.372e-06/0.094, allocations: 0 / 487.1 MB, free: 8 kB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004664/0.09447, allocations: 157.5 kB / 487.2 MB, free: 15.85 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.746e-05/0.09452, allocations: 59.34 kB / 487.3 MB, free: 15.78 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001149/0.09464, allocations: 145.7 kB / 487.4 MB, free: 15.62 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.961e-05/0.09467, allocations: 29.7 kB / 487.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.415e-05/0.09473, allocations: 100.1 kB / 487.5 MB, free: 15.49 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.309e-05/0.09476, allocations: 15.8 kB / 487.6 MB, free: 15.47 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.066e-05/0.09479, allocations: 21.7 kB / 487.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.328e-05/0.09489, allocations: 326.8 kB / 487.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001259/0.09502, allocations: 35.98 kB / 487.9 MB, free: 15.08 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000135/0.09516, allocations: 57.69 kB / 488 MB, free: 15.02 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002229/0.0954, allocations: 81.61 kB / 488.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.09541, allocations: 4.188 kB / 488.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003027/0.09572, allocations: 133.3 kB / 488.2 MB, free: 14.79 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/0.09574, allocations: 11.94 kB / 488.2 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.167e-06/0.09575, allocations: 0 / 488.2 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.278e-06/0.09577, allocations: 4.031 kB / 488.2 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001011/0.09587, allocations: 19.98 kB / 488.2 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.09588, allocations: 0 / 488.2 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001004/0.09599, allocations: 20.06 kB / 488.3 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.528e-06/0.09601, allocations: 8 kB / 488.3 MB, free: 14.73 MB / 366.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.044e-05/0.09609, allocations: 124.3 kB / 488.4 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.866e-05/0.09612, allocations: 11.84 kB / 488.4 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.102e-05/0.09616, allocations: 16.7 kB / 488.4 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.09617, allocations: 0 / 488.4 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.09618, allocations: 0 / 488.4 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.09619, allocations: 0 / 488.4 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004953/0.09669, allocations: 398.4 kB / 488.8 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.0967, allocations: 3.984 kB / 488.8 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.248e-05/0.0968, allocations: 19.94 kB / 488.8 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.09681, allocations: 0 / 488.8 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.081e-05/0.09682, allocations: 0 / 488.8 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.09683, allocations: 11.94 kB / 488.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.883e-06/0.09684, allocations: 7.984 kB / 488.9 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004535/0.0973, allocations: 259.3 kB / 489.1 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.886e-05/0.09735, allocations: 85.05 kB / 489.2 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.74e-05/0.09738, allocations: 0 / 489.2 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001574/0.09754, allocations: 32.02 kB / 489.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.771e-05/0.0976, allocations: 15.98 kB / 489.2 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.222e-06/0.09761, allocations: 0 / 489.2 MB, free: 13.67 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.486e-05/0.09769, allocations: 118.8 kB / 489.4 MB, free: 13.55 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09769, allocations: 0 / 489.4 MB, free: 13.55 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002363/0.09793, allocations: 12 kB / 489.4 MB, free: 13.54 MB / 366.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.0006565/0.0986, allocations: 0.7981 MB / 490.2 MB, free: 12.72 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002851/0.09889, allocations: 91.97 kB / 490.3 MB, free: 12.63 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.09891, allocations: 192 / 490.3 MB, free: 12.63 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001384/0.09905, allocations: 48.11 kB / 490.3 MB, free: 12.58 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002969/0.09936, allocations: 19.92 kB / 490.3 MB, free: 12.56 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002289/0.1017, allocations: 1.738 MB / 492.1 MB, free: 10.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002194/0.1019, allocations: 0.7082 MB / 492.8 MB, free: 10 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.33e-05/0.1019, allocations: 4.562 kB / 492.8 MB, free: 9.996 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.492e-05/0.102, allocations: 27.42 kB / 492.8 MB, free: 9.969 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.102, allocations: 0 / 492.8 MB, free: 9.969 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01095/0.113, allocations: 2.229 MB / 495 MB, free: 7.852 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001634/0.1131, allocations: 188.1 kB / 495.2 MB, free: 7.598 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.599/1.713, allocations: 0 / 495.2 MB, free: 7.598 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches