Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.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.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator",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.001162/0.001162, allocations: 112.1 kB / 17.33 MB, free: 5.988 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.00106/0.00106, allocations: 193.3 kB / 18.25 MB, free: 5.086 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.358/1.358, allocations: 222.9 MB / 241.9 MB, free: 13.67 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1991/0.1991, allocations: 44.17 MB / 336.2 MB, free: 2.711 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 57.59 kB / 408 MB, free: 27.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09035/0.09172, allocations: 60.82 MB / 468.8 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001881/0.09364, allocations: 0.8695 MB / 469.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001833/0.09384, allocations: 59.81 kB / 469.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.79e-05/0.09391, allocations: 0 / 469.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.547e-05/0.09403, allocations: 3.938 kB / 469.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.66e-05/0.09405, allocations: 4 kB / 469.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.891e-05/0.09416, allocations: 15.98 kB / 469.8 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.593e-05/0.09425, allocations: 35.92 kB / 469.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.414e-05/0.09435, allocations: 19.98 kB / 469.8 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.996e-05/0.09437, allocations: 11.88 kB / 469.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.812e-05/0.09442, allocations: 19.86 kB / 469.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.259e-05/0.09443, allocations: 4 kB / 469.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.756e-06/0.09445, allocations: 0 / 469.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.805e-05/0.09447, allocations: 11.98 kB / 469.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.757e-05/0.09451, allocations: 23.88 kB / 469.9 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.588e-05/0.09459, allocations: 32.17 kB / 469.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.09459, allocations: 0 / 469.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.0946, allocations: 0 / 469.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.09461, allocations: 0 / 469.9 MB, free: 13.5 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.0003427/0.09496, allocations: 351.4 kB / 470.3 MB, free: 13.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/0.095, allocations: 8.031 kB / 470.3 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.87e-05/0.09503, allocations: 34.75 kB / 470.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.179e-05/0.09506, allocations: 4.844 kB / 470.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001423/0.0952, allocations: 188.2 kB / 470.5 MB, free: 12.83 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.563e-06/0.09522, allocations: 8.359 kB / 470.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.106e-05/0.09524, allocations: 12.3 kB / 470.5 MB, free: 12.81 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.156e-05/0.09534, allocations: 50.25 kB / 470.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.722e-06/0.09535, allocations: 3.938 kB / 470.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.201e-05/0.09537, allocations: 4 kB / 470.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.426e-06/0.09538, allocations: 3.938 kB / 470.6 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.461e-05/0.09542, allocations: 8 kB / 470.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004042/0.09583, allocations: 296.6 kB / 470.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.603e-05/0.09588, allocations: 26.58 kB / 470.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.457e-05/0.0959, allocations: 4.859 kB / 470.9 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.033e-06/0.09592, allocations: 4.062 kB / 470.9 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.52e-05/0.09602, allocations: 47.41 kB / 471 MB, free: 12.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.093e-06/0.09603, allocations: 0 / 471 MB, free: 12.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001223/0.09615, allocations: 61.62 kB / 471 MB, free: 12.22 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.561e-05/0.09619, allocations: 51.41 kB / 471.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.614e-05/0.09627, allocations: 117.8 kB / 471.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.188e-05/0.09629, allocations: 25.7 kB / 471.2 MB, free: 12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.016e-05/0.09633, allocations: 92.05 kB / 471.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.026e-05/0.09635, allocations: 3.906 kB / 471.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.813e-05/0.09638, allocations: 17.72 kB / 471.3 MB, free: 11.88 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.496e-05/0.09647, allocations: 322.8 kB / 471.6 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.515e-05/0.09649, allocations: 8 kB / 471.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.134e-05/0.09652, allocations: 25.7 kB / 471.7 MB, free: 11.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.427e-05/0.09656, allocations: 25.66 kB / 471.7 MB, free: 11.49 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.09656, allocations: 0 / 471.7 MB, free: 11.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.973e-05/0.09664, allocations: 53.62 kB / 471.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/0.09666, allocations: 6.969 kB / 471.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.09666, allocations: 0 / 471.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.002e-05/0.09668, allocations: 4.031 kB / 471.8 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.815e-05/0.09671, allocations: 4 kB / 471.8 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.09672, allocations: 4 kB / 471.8 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.882e-05/0.09676, allocations: 11.84 kB / 471.8 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.29e-06/0.09677, allocations: 4.328 kB / 471.8 MB, free: 11.4 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.382e-05/0.09684, allocations: 113.8 kB / 471.9 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.066e-05/0.09685, allocations: 4 kB / 471.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.224e-05/0.09688, allocations: 15.88 kB / 471.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.09688, allocations: 0 / 471.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.09689, allocations: 4 kB / 471.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.0969, allocations: 3.938 kB / 471.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002341/0.09714, allocations: 303 kB / 472.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.09715, allocations: 3.938 kB / 472.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.706e-05/0.09718, allocations: 0 / 472.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.09719, allocations: 4 kB / 472.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.925e-06/0.09721, allocations: 7.875 kB / 472.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.09721, allocations: 0 / 472.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.09722, allocations: 0 / 472.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001139/0.09734, allocations: 155.4 kB / 472.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.399e-05/0.09738, allocations: 85.05 kB / 472.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.338e-05/0.0974, allocations: 7.922 kB / 472.5 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.336e-05/0.09745, allocations: 4 kB / 472.5 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.092e-05/0.09748, allocations: 0 / 472.5 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.22e-06/0.09749, allocations: 4 kB / 472.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.09e-05/0.09754, allocations: 91.27 kB / 472.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09754, allocations: 4.062 kB / 472.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002023/0.09775, allocations: 4 kB / 472.6 MB, free: 10.5 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: 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.0003131/0.09807, allocations: 0.6817 MB / 473.3 MB, free: 9.785 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.159e-05/0.09815, allocations: 19.94 kB / 473.3 MB, free: 9.766 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.342e-06/0.09816, allocations: 0 / 473.3 MB, free: 9.766 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.508e-05/0.09818, allocations: 8.125 kB / 473.3 MB, free: 9.758 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002355/0.09842, allocations: 11.98 kB / 473.3 MB, free: 9.746 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008953/0.09932, allocations: 1.29 MB / 474.6 MB, free: 8.371 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001942/0.09953, allocations: 0.6885 MB / 475.3 MB, free: 7.656 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.884e-05/0.09955, allocations: 8.094 kB / 475.3 MB, free: 7.648 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.748e-05/0.0996, allocations: 15.44 kB / 475.3 MB, free: 7.633 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.0996, allocations: 0 / 475.3 MB, free: 7.633 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9229/1.022, allocations: 1.453 MB / 476.7 MB, free: 6.289 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002864/1.023, allocations: 213.4 kB / 477 MB, free: 6.023 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.121/3.144, allocations: 2.953 kB / 477 MB, free: 6.023 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches