Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.IntegratorForceState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001646/0.001646, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002013/0.002013, allocations: 205 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.389/1.389, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2298/0.2298, allocations: 46.96 MB / 360.9 MB, free: 4.016 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.IntegratorForceState,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_IntegratorForceState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.IntegratorForceState,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_IntegratorForceState",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001945/0.001945, allocations: 64.09 kB / 0.4961 GB, free: 7.719 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3305/0.3324, allocations: 66.03 MB / 0.5606 GB, free: 4.242 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegratorForceState): time 0.002958/0.3354, allocations: 1.568 MB / 0.5621 GB, free: 2.664 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002693/0.3356, allocations: 67.75 kB / 0.5622 GB, free: 2.598 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.259e-05/0.3357, allocations: 0 / 0.5622 GB, free: 2.598 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001122/0.3358, allocations: 11.86 kB / 0.5622 GB, free: 2.586 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.367e-05/0.3359, allocations: 3.938 kB / 0.5622 GB, free: 2.582 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001415/0.336, allocations: 23.98 kB / 0.5622 GB, free: 2.559 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00011/0.3361, allocations: 35.86 kB / 0.5622 GB, free: 2.523 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001117/0.3362, allocations: 13.8 kB / 0.5623 GB, free: 2.512 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.015e-05/0.3363, allocations: 11.94 kB / 0.5623 GB, free: 2.5 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.607e-05/0.3363, allocations: 15.92 kB / 0.5623 GB, free: 2.484 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.638e-05/0.3363, allocations: 4 kB / 0.5623 GB, free: 2.48 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.099e-05/0.3363, allocations: 0 / 0.5623 GB, free: 2.48 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.871e-05/0.3364, allocations: 8 kB / 0.5623 GB, free: 2.473 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.616e-05/0.3364, allocations: 15.86 kB / 0.5623 GB, free: 2.457 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001096/0.3365, allocations: 35.83 kB / 0.5623 GB, free: 2.422 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.3365, allocations: 4 kB / 0.5623 GB, free: 2.418 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.3365, allocations: 0 / 0.5623 GB, free: 2.418 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.3365, allocations: 3.938 kB / 0.5623 GB, free: 2.414 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000446/0.337, allocations: 278.2 kB / 0.5626 GB, free: 2.109 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.337, allocations: 8.031 kB / 0.5626 GB, free: 2.102 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.515e-05/0.337, allocations: 30.75 kB / 0.5626 GB, free: 2.062 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.848e-05/0.3371, allocations: 8.891 kB / 0.5627 GB, free: 2.055 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002064/0.3373, allocations: 118.5 kB / 0.5628 GB, free: 1.914 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.102e-05/0.3373, allocations: 384 / 0.5628 GB, free: 1.914 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.453e-05/0.3373, allocations: 8.375 kB / 0.5628 GB, free: 1.906 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001714/0.3375, allocations: 80.67 kB / 0.5629 GB, free: 1.812 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.3375, allocations: 7.938 kB / 0.5629 GB, free: 1.805 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.073e-05/0.3375, allocations: 4 kB / 0.5629 GB, free: 1.801 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.3375, allocations: 0 / 0.5629 GB, free: 1.801 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.63e-05/0.3376, allocations: 19.98 kB / 0.5629 GB, free: 1.781 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005239/0.3381, allocations: 420.2 kB / 0.5633 GB, free: 1.32 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001731/0.3383, allocations: 42.59 kB / 0.5633 GB, free: 1.27 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5e-05/0.3383, allocations: 20.84 kB / 0.5633 GB, free: 1.246 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.89e-05/0.3384, allocations: 3.984 kB / 0.5634 GB, free: 1.242 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.989e-05/0.3384, allocations: 38.5 kB / 0.5634 GB, free: 1.195 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.3384, allocations: 0 / 0.5634 GB, free: 1.195 MB / 398.1 MB Notification: Performance of matching and sorting (n=4): time 0.00046/0.3389, allocations: 101.5 kB / 0.5635 GB, free: 1.09 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.14e-05/0.3389, allocations: 59.34 kB / 0.5635 GB, free: 1.02 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.03e-05/0.339, allocations: 113.8 kB / 0.5637 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.677e-05/0.339, allocations: 25.7 kB / 0.5637 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.921e-05/0.3391, allocations: 104 kB / 0.5638 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.333e-05/0.3391, allocations: 11.91 kB / 0.5638 GB, free: 0.75 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.046e-05/0.3391, allocations: 21.72 kB / 0.5638 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.3393, allocations: 318.8 kB / 0.5641 GB, free: 412 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.049e-05/0.3393, allocations: 15.98 kB / 0.5641 GB, free: 396 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.269e-05/0.3394, allocations: 39.42 kB / 0.5642 GB, free: 344 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00012/0.3395, allocations: 59.36 kB / 0.5642 GB, free: 272 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.62e-07/0.3395, allocations: 4 kB / 0.5642 GB, free: 268 kB / 398.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001592/0.3397, allocations: 81.56 kB / 0.5643 GB, free: 180 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.3397, allocations: 8 kB / 0.5643 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.3397, allocations: 0 / 0.5643 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.3397, allocations: 0 / 0.5643 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.04e-05/0.3398, allocations: 23.94 kB / 0.5643 GB, free: 148 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.3398, allocations: 3.984 kB / 0.5643 GB, free: 144 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.904e-05/0.3398, allocations: 4 kB / 0.5643 GB, free: 140 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.332e-06/0.3398, allocations: 4.094 kB / 0.5643 GB, free: 136 kB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 1 (integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.768e-05/0.3399, allocations: 117.8 kB / 0.5645 GB, free: 8 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.726e-05/0.3399, allocations: 7.953 kB / 0.5645 GB, free: 0 / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.038e-05/0.34, allocations: 8 kB / 0.5645 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.34, allocations: 0 / 0.5645 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.34, allocations: 7.938 kB / 0.5645 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.34, allocations: 3.984 kB / 0.5645 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001705/0.3402, allocations: 132.7 kB / 0.5646 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.3402, allocations: 384 / 0.5646 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.171e-05/0.3402, allocations: 8 kB / 0.5646 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.656e-06/0.3402, allocations: 8 kB / 0.5646 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.242e-05/0.3403, allocations: 7.984 kB / 0.5646 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.3403, allocations: 7.875 kB / 0.5646 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3403, allocations: 0 / 0.5646 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002449/0.3405, allocations: 171.5 kB / 0.5648 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.054e-05/0.3405, allocations: 3.953 kB / 0.5648 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.777e-05/0.3405, allocations: 8.438 kB / 0.5648 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.78e-05/0.3406, allocations: 0 / 0.5648 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.562e-05/0.3406, allocations: 4 kB / 0.5648 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.236e-06/0.3406, allocations: 4 kB / 0.5648 GB, free: 15.57 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.406e-05/0.3407, allocations: 95.33 kB / 0.5649 GB, free: 15.47 MB / 414.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3407, allocations: 0 / 0.5649 GB, free: 15.47 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002182/0.3409, allocations: 7.938 kB / 0.5649 GB, free: 15.46 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (gain.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.0005378/0.3414, allocations: 0.7085 MB / 0.5656 GB, free: 14.73 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00015/0.3416, allocations: 35.92 kB / 0.5656 GB, free: 14.7 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3416, allocations: 0 / 0.5656 GB, free: 14.7 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.671e-05/0.3416, allocations: 24.23 kB / 0.5657 GB, free: 14.67 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002732/0.3419, allocations: 11.98 kB / 0.5657 GB, free: 14.66 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001418/0.3433, allocations: 1.372 MB / 0.567 GB, free: 13.19 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.308e-05/0.3434, allocations: 67.33 kB / 0.5671 GB, free: 13.11 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.111e-05/0.3434, allocations: 4 kB / 0.5671 GB, free: 13.1 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.331e-05/0.3435, allocations: 23.42 kB / 0.5671 GB, free: 13.08 MB / 414.1 MB Notification: Performance of SimCode: time 5e-07/0.3435, allocations: 0 / 0.5671 GB, free: 13.08 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0356/0.3791, allocations: 2.059 MB / 0.5691 GB, free: 11.14 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.39/10.77, allocations: 6.234 kB / 0.5691 GB, free: 11.14 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.IntegratorForceState.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.IntegratorForceState.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.IntegratorForceState.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.IntegratorForceState.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.Blocks.IntegratorForceState_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00019992 ModelicaTest_4_1_0_ModelicaTest_Blocks_IntegratorForceState.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.IntegratorForceState.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.IntegratorForceState_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/IntegratorForceState/IntegratorForceState.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.IntegratorForceState.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: 13.744936963979853]