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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001321/0.001321, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001414/0.001414, allocations: 206.6 kB / 20.75 MB, free: 2.312 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.489/1.489, allocations: 230.4 MB / 254 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2282/0.2282, allocations: 46.91 MB / 357 MB, free: 10.2 MB / 286.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0023/0.0023, allocations: 79.89 kB / 0.491 GB, free: 7.746 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.1351, allocations: 66.05 MB / 0.5555 GB, free: 5.57 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002176/0.1373, allocations: 0.8159 MB / 0.5563 GB, free: 4.75 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001978/0.1375, allocations: 51.81 kB / 0.5563 GB, free: 4.699 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.885e-05/0.1375, allocations: 4 kB / 0.5563 GB, free: 4.695 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001102/0.1376, allocations: 3.938 kB / 0.5563 GB, free: 4.691 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 1.858e-05/0.1376, allocations: 7.938 kB / 0.5563 GB, free: 4.684 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001137/0.1378, allocations: 19.97 kB / 0.5563 GB, free: 4.664 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001075/0.1379, allocations: 35.86 kB / 0.5564 GB, free: 4.629 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001116/0.138, allocations: 19.97 kB / 0.5564 GB, free: 4.609 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.778e-05/0.138, allocations: 11.94 kB / 0.5564 GB, free: 4.598 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.283e-05/0.1381, allocations: 11.92 kB / 0.5564 GB, free: 4.586 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.522e-05/0.1381, allocations: 4 kB / 0.5564 GB, free: 4.582 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.094e-05/0.1381, allocations: 4 kB / 0.5564 GB, free: 4.578 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.969e-05/0.1381, allocations: 4 kB / 0.5564 GB, free: 4.574 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.568e-05/0.1381, allocations: 19.86 kB / 0.5564 GB, free: 4.555 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000114/0.1383, allocations: 43.77 kB / 0.5565 GB, free: 4.512 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.1383, allocations: 0 / 0.5565 GB, free: 4.512 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1383, allocations: 4 kB / 0.5565 GB, free: 4.508 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.992e-06/0.1383, allocations: 0 / 0.5565 GB, free: 4.508 MB / 414.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.0004782/0.1387, allocations: 351.3 kB / 0.5568 GB, free: 4.113 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.1388, allocations: 12.03 kB / 0.5568 GB, free: 4.102 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.803e-05/0.1388, allocations: 34.75 kB / 0.5569 GB, free: 4.059 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.782e-05/0.1389, allocations: 4.938 kB / 0.5569 GB, free: 4.055 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002414/0.1391, allocations: 180.3 kB / 0.557 GB, free: 3.84 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.896e-05/0.1391, allocations: 8.375 kB / 0.5571 GB, free: 3.832 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.816e-05/0.1391, allocations: 384 / 0.5571 GB, free: 3.832 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000118/0.1393, allocations: 50.25 kB / 0.5571 GB, free: 3.777 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.1393, allocations: 3.938 kB / 0.5571 GB, free: 3.773 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.09e-05/0.1393, allocations: 4 kB / 0.5571 GB, free: 3.77 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/0.1393, allocations: 3.938 kB / 0.5571 GB, free: 3.766 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.941e-05/0.1393, allocations: 15.94 kB / 0.5571 GB, free: 3.75 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005217/0.1399, allocations: 296.7 kB / 0.5574 GB, free: 3.41 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.621e-05/0.1399, allocations: 22.52 kB / 0.5574 GB, free: 3.379 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.193e-05/0.14, allocations: 16.91 kB / 0.5574 GB, free: 3.359 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.348e-06/0.14, allocations: 0 / 0.5574 GB, free: 3.359 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.801e-05/0.1401, allocations: 51.41 kB / 0.5575 GB, free: 3.297 MB / 414.1 MB Notification: Performance of pre-optimization done (n=3): time 1.302e-06/0.1401, allocations: 0 / 0.5575 GB, free: 3.297 MB / 414.1 MB Notification: Performance of matching and sorting (n=3): time 0.000144/0.1402, allocations: 49.66 kB / 0.5575 GB, free: 3.242 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.18e-05/0.1403, allocations: 59.33 kB / 0.5576 GB, free: 3.172 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.802e-05/0.1404, allocations: 117.8 kB / 0.5577 GB, free: 3.047 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.778e-05/0.1404, allocations: 25.7 kB / 0.5577 GB, free: 3.016 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.135e-05/0.1404, allocations: 92.03 kB / 0.5578 GB, free: 2.922 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.431e-05/0.1404, allocations: 7.953 kB / 0.5578 GB, free: 2.914 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.758e-05/0.1405, allocations: 21.7 kB / 0.5579 GB, free: 2.887 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.1406, allocations: 318.8 kB / 0.5582 GB, free: 2.566 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.7e-05/0.1406, allocations: 8 kB / 0.5582 GB, free: 2.559 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.956e-05/0.1407, allocations: 21.7 kB / 0.5582 GB, free: 2.531 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.326e-05/0.1407, allocations: 25.98 kB / 0.5582 GB, free: 2.5 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.1407, allocations: 0 / 0.5582 GB, free: 2.5 MB / 414.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.887e-05/0.1408, allocations: 57.62 kB / 0.5583 GB, free: 2.438 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/0.1408, allocations: 4 kB / 0.5583 GB, free: 2.434 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.618e-06/0.1408, allocations: 4 kB / 0.5583 GB, free: 2.43 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.209e-05/0.1408, allocations: 4.031 kB / 0.5583 GB, free: 2.426 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.192e-05/0.1409, allocations: 4 kB / 0.5583 GB, free: 2.422 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.088e-06/0.1409, allocations: 0 / 0.5583 GB, free: 2.422 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.101e-05/0.1409, allocations: 11.83 kB / 0.5583 GB, free: 2.41 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.077e-05/0.1409, allocations: 8 kB / 0.5583 GB, free: 2.402 MB / 414.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 8.721e-05/0.141, allocations: 113.8 kB / 0.5584 GB, free: 2.281 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.187e-06/0.141, allocations: 4 kB / 0.5584 GB, free: 2.277 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.473e-05/0.141, allocations: 3.906 kB / 0.5584 GB, free: 2.27 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.141, allocations: 4 kB / 0.5584 GB, free: 2.266 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.141, allocations: 4.375 kB / 0.5584 GB, free: 2.262 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-06/0.1411, allocations: 3.938 kB / 0.5584 GB, free: 2.258 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003151/0.1414, allocations: 294.6 kB / 0.5587 GB, free: 1.914 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.1414, allocations: 0 / 0.5587 GB, free: 1.914 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.179e-05/0.1414, allocations: 11.88 kB / 0.5587 GB, free: 1.902 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.1414, allocations: 0 / 0.5587 GB, free: 1.902 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.61e-05/0.1414, allocations: 7.938 kB / 0.5587 GB, free: 1.895 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.1414, allocations: 0 / 0.5587 GB, free: 1.895 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.1414, allocations: 0 / 0.5587 GB, free: 1.895 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001586/0.1416, allocations: 151.5 kB / 0.5589 GB, free: 1.73 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.401e-05/0.1416, allocations: 85.05 kB / 0.559 GB, free: 1.629 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.48e-05/0.1416, allocations: 3.938 kB / 0.559 GB, free: 1.625 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.377e-05/0.1417, allocations: 32 / 0.559 GB, free: 1.625 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.831e-05/0.1417, allocations: 4 kB / 0.559 GB, free: 1.621 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.937e-06/0.1417, allocations: 0 / 0.559 GB, free: 1.621 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.175e-05/0.1418, allocations: 91.27 kB / 0.559 GB, free: 1.531 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1418, allocations: 7.875 kB / 0.5591 GB, free: 1.523 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002228/0.142, allocations: 12.06 kB / 0.5591 GB, free: 1.512 MB / 414.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.0004825/0.1425, allocations: 0.6773 MB / 0.5597 GB, free: 0.8086 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.354e-05/0.1426, allocations: 23.88 kB / 0.5597 GB, free: 0.7852 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.1426, allocations: 0 / 0.5597 GB, free: 0.7852 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.054e-05/0.1426, allocations: 8.266 kB / 0.5598 GB, free: 0.7773 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002506/0.1429, allocations: 14.31 kB / 0.5598 GB, free: 0.7656 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001213/0.1441, allocations: 1.291 MB / 0.561 GB, free: 15.39 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003058/0.1444, allocations: 0.6807 MB / 0.5617 GB, free: 14.68 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.702e-05/0.1444, allocations: 0 / 0.5617 GB, free: 14.68 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.005e-05/0.1444, allocations: 23.42 kB / 0.5617 GB, free: 14.66 MB / 430.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1444, allocations: 288 / 0.5617 GB, free: 14.66 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02468/0.1691, allocations: 1.556 MB / 0.5632 GB, free: 13.18 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.826/7.995, allocations: 7.875 kB / 0.5632 GB, free: 13.17 MB / 430.1 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000998004 ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.107752530951984]