Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.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.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006897/0.0006897, allocations: 92.45 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008103/0.0008103, allocations: 202.2 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.243/1.243, allocations: 227.7 MB / 246.8 MB, free: 11.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1858/0.1858, allocations: 46.18 MB / 345.2 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002211/0.0002211, allocations: 4 kB / 419.6 MB, free: 19.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08775/0.08799, allocations: 63.57 MB / 483.2 MB, free: 4.098 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.0008809/0.08892, allocations: 0.5255 MB / 483.7 MB, free: 3.574 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001627/0.08909, allocations: 59.86 kB / 483.8 MB, free: 3.516 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.705e-05/0.08915, allocations: 0 / 483.8 MB, free: 3.516 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.898e-05/0.08924, allocations: 3.938 kB / 483.8 MB, free: 3.512 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.585e-05/0.08926, allocations: 3.938 kB / 483.8 MB, free: 3.508 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.685e-05/0.08935, allocations: 15.98 kB / 483.8 MB, free: 3.492 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.869e-05/0.08944, allocations: 39.86 kB / 483.8 MB, free: 3.453 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.946e-05/0.08953, allocations: 11.98 kB / 483.8 MB, free: 3.441 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.739e-05/0.08955, allocations: 15.92 kB / 483.8 MB, free: 3.426 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.48e-05/0.08959, allocations: 15.86 kB / 483.9 MB, free: 3.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.169e-05/0.08961, allocations: 0 / 483.9 MB, free: 3.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.015e-06/0.08962, allocations: 0 / 483.9 MB, free: 3.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.507e-05/0.08964, allocations: 4 kB / 483.9 MB, free: 3.406 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.505e-05/0.08968, allocations: 45.56 kB / 483.9 MB, free: 3.355 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.205e-05/0.08975, allocations: 27.89 kB / 483.9 MB, free: 3.328 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.08976, allocations: 0 / 483.9 MB, free: 3.328 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.08977, allocations: 0 / 483.9 MB, free: 3.328 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.146e-06/0.08978, allocations: 0 / 483.9 MB, free: 3.328 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003095/0.09009, allocations: 339.7 kB / 484.3 MB, free: 2.945 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.374e-05/0.09013, allocations: 12.88 kB / 484.3 MB, free: 2.934 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.268e-05/0.09017, allocations: 34.73 kB / 484.3 MB, free: 2.891 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.519e-05/0.0902, allocations: 12.84 kB / 484.3 MB, free: 2.879 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000136/0.09034, allocations: 176.3 kB / 484.5 MB, free: 2.668 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.995e-06/0.09036, allocations: 8.375 kB / 484.5 MB, free: 2.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.441e-05/0.09038, allocations: 4.375 kB / 484.5 MB, free: 2.656 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.751e-05/0.09048, allocations: 50.25 kB / 484.6 MB, free: 2.602 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.232e-06/0.09049, allocations: 3.938 kB / 484.6 MB, free: 2.598 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.632e-06/0.0905, allocations: 0 / 484.6 MB, free: 2.598 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.09052, allocations: 4 kB / 484.6 MB, free: 2.594 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.01e-05/0.09056, allocations: 15.98 kB / 484.6 MB, free: 2.578 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003987/0.09096, allocations: 296.6 kB / 484.9 MB, free: 2.238 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.335e-05/0.09102, allocations: 26.56 kB / 484.9 MB, free: 2.203 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.589e-05/0.09104, allocations: 8.859 kB / 484.9 MB, free: 2.191 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.28e-06/0.09105, allocations: 0 / 484.9 MB, free: 2.191 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.831e-05/0.09115, allocations: 51.47 kB / 485 MB, free: 2.129 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.031e-06/0.09116, allocations: 3.938 kB / 485 MB, free: 2.125 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001099/0.09127, allocations: 57.58 kB / 485 MB, free: 2.062 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.541e-05/0.09131, allocations: 55.41 kB / 485.1 MB, free: 1.996 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.703e-05/0.09139, allocations: 114.1 kB / 485.2 MB, free: 1.875 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.112e-05/0.09141, allocations: 25.7 kB / 485.2 MB, free: 1.844 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.607e-05/0.09145, allocations: 88.14 kB / 485.3 MB, free: 1.754 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.039e-05/0.09146, allocations: 7.984 kB / 485.3 MB, free: 1.746 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.399e-05/0.09149, allocations: 21.66 kB / 485.3 MB, free: 1.719 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.863e-05/0.09159, allocations: 314.8 kB / 485.6 MB, free: 1.402 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.649e-05/0.09161, allocations: 12 kB / 485.6 MB, free: 1.391 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.544e-05/0.09164, allocations: 25.64 kB / 485.7 MB, free: 1.359 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.407e-05/0.09168, allocations: 21.72 kB / 485.7 MB, free: 1.332 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.09169, allocations: 0 / 485.7 MB, free: 1.332 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.299e-05/0.09176, allocations: 57.53 kB / 485.7 MB, free: 1.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.016e-05/0.09178, allocations: 6.812 kB / 485.8 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.346e-06/0.09179, allocations: 0 / 485.8 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/0.0918, allocations: 4 kB / 485.8 MB, free: 1.262 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.56e-05/0.09184, allocations: 4.031 kB / 485.8 MB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.517e-06/0.09185, allocations: 4 kB / 485.8 MB, free: 1.254 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.881e-05/0.09188, allocations: 3.938 kB / 485.8 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.891e-06/0.09189, allocations: 8 kB / 485.8 MB, free: 1.242 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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 6.346e-05/0.09196, allocations: 109.8 kB / 485.9 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.228e-05/0.09198, allocations: 7.906 kB / 485.9 MB, free: 1.117 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.925e-05/0.092, allocations: 7.906 kB / 485.9 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-06/0.09201, allocations: 0 / 485.9 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.09202, allocations: 8 kB / 485.9 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.09203, allocations: 3.938 kB / 485.9 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002474/0.09228, allocations: 302.6 kB / 486.2 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.09229, allocations: 4 kB / 486.2 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.996e-05/0.09233, allocations: 0 / 486.2 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.09234, allocations: 3.938 kB / 486.2 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.615e-06/0.09235, allocations: 3.938 kB / 486.2 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.09235, allocations: 0 / 486.2 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.09236, allocations: 4 kB / 486.2 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001198/0.09249, allocations: 155.4 kB / 486.4 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.538e-05/0.09253, allocations: 85.03 kB / 486.5 MB, free: 468 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.192e-05/0.09255, allocations: 3.938 kB / 486.5 MB, free: 464 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.16e-05/0.09262, allocations: 8.031 kB / 486.5 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.976e-05/0.09265, allocations: 432 / 486.5 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.256e-06/0.09266, allocations: 0 / 486.5 MB, free: 456 kB / 350.1 MB Notification: Performance of sorting global known variables: time 4.419e-05/0.09271, allocations: 99.2 kB / 486.6 MB, free: 356 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.09272, allocations: 4.062 kB / 486.6 MB, free: 352 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002116/0.09293, allocations: 4 kB / 486.6 MB, free: 348 kB / 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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0003222/0.09326, allocations: 0.685 MB / 487.3 MB, free: 15.63 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 5.9e-05/0.09333, allocations: 15.94 kB / 487.3 MB, free: 15.61 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.09334, allocations: 0 / 487.3 MB, free: 15.61 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.92e-05/0.09336, allocations: 16.11 kB / 487.3 MB, free: 15.6 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002468/0.09361, allocations: 14.67 kB / 487.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009157/0.09454, allocations: 1.288 MB / 488.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001941/0.09475, allocations: 0.6809 MB / 489.3 MB, free: 13.51 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.064e-05/0.09477, allocations: 7.984 kB / 489.3 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.792e-05/0.09481, allocations: 19.38 kB / 489.3 MB, free: 13.48 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.09481, allocations: 0 / 489.3 MB, free: 13.48 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009384/0.1042, allocations: 1.304 MB / 490.6 MB, free: 12.29 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001564/0.1044, allocations: 192.5 kB / 490.8 MB, free: 12.04 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.549/1.654, allocations: 0 / 490.8 MB, free: 12.04 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches