Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001348/0.001348, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001571/0.001571, allocations: 207.7 kB / 23.73 MB, free: 4.387 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.495/1.495, allocations: 230.6 MB / 257.5 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2923/0.2923, allocations: 44.94 MB / 358.8 MB, free: 6.117 MB / 286.1 MB " [Timeout remaining time 179] 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.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_0_0_ModelicaTest_Blocks_IntegratorForceState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.IntegratorForceState,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_IntegratorForceState",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002185/0.002185, allocations: 71.88 kB / 0.493 GB, free: 10.51 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3341/0.3363, allocations: 65.47 MB / 0.557 GB, free: 7.312 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegratorForceState): time 0.003007/0.3393, allocations: 1.558 MB / 0.5585 GB, free: 5.918 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003061/0.3396, allocations: 67.8 kB / 0.5585 GB, free: 5.852 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.328e-05/0.3397, allocations: 3.938 kB / 0.5585 GB, free: 5.848 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001159/0.3398, allocations: 3.938 kB / 0.5586 GB, free: 5.844 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.267e-05/0.3398, allocations: 3.938 kB / 0.5586 GB, free: 5.84 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001587/0.34, allocations: 19.97 kB / 0.5586 GB, free: 5.82 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001474/0.3402, allocations: 43.86 kB / 0.5586 GB, free: 5.777 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001093/0.3403, allocations: 5.828 kB / 0.5586 GB, free: 5.773 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.461e-05/0.3403, allocations: 15.92 kB / 0.5586 GB, free: 5.758 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.066e-05/0.3404, allocations: 19.86 kB / 0.5587 GB, free: 5.738 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.805e-05/0.3404, allocations: 4 kB / 0.5587 GB, free: 5.734 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.195e-05/0.3404, allocations: 0 / 0.5587 GB, free: 5.734 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.467e-05/0.3404, allocations: 15.92 kB / 0.5587 GB, free: 5.719 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.532e-05/0.3404, allocations: 7.938 kB / 0.5587 GB, free: 5.711 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001216/0.3406, allocations: 35.83 kB / 0.5587 GB, free: 5.676 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3406, allocations: 0 / 0.5587 GB, free: 5.676 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.3406, allocations: 0 / 0.5587 GB, free: 5.676 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.074e-06/0.3406, allocations: 4 kB / 0.5587 GB, free: 5.672 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.0005134/0.3411, allocations: 278.2 kB / 0.559 GB, free: 5.367 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.3411, allocations: 12.03 kB / 0.559 GB, free: 5.355 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.824e-05/0.3412, allocations: 30.75 kB / 0.559 GB, free: 5.316 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.694e-05/0.3412, allocations: 8.891 kB / 0.559 GB, free: 5.309 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00021/0.3414, allocations: 122.5 kB / 0.5592 GB, free: 5.164 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.107e-05/0.3414, allocations: 4.312 kB / 0.5592 GB, free: 5.16 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.254e-05/0.3414, allocations: 4.375 kB / 0.5592 GB, free: 5.156 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00017/0.3416, allocations: 68.83 kB / 0.5592 GB, free: 5.074 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.899e-06/0.3416, allocations: 3.938 kB / 0.5592 GB, free: 5.07 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.429e-05/0.3416, allocations: 11.98 kB / 0.5592 GB, free: 5.059 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.3416, allocations: 0 / 0.5592 GB, free: 5.059 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.359e-05/0.3417, allocations: 27.91 kB / 0.5593 GB, free: 5.031 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005289/0.3423, allocations: 416.2 kB / 0.5597 GB, free: 4.574 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001594/0.3424, allocations: 46.5 kB / 0.5597 GB, free: 4.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.773e-05/0.3425, allocations: 12.86 kB / 0.5597 GB, free: 4.504 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.443e-05/0.3425, allocations: 4.094 kB / 0.5597 GB, free: 4.5 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.15e-05/0.3425, allocations: 42.55 kB / 0.5598 GB, free: 4.449 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 1.123e-06/0.3425, allocations: 0 / 0.5598 GB, free: 4.449 MB / 398.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004667/0.343, allocations: 105.4 kB / 0.5599 GB, free: 4.34 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.573e-05/0.343, allocations: 51.41 kB / 0.5599 GB, free: 4.277 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001126/0.3431, allocations: 121.8 kB / 0.56 GB, free: 4.148 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.753e-05/0.3432, allocations: 25.7 kB / 0.5601 GB, free: 4.117 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.84e-05/0.3432, allocations: 92.03 kB / 0.5601 GB, free: 4.023 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.217e-05/0.3432, allocations: 15.91 kB / 0.5602 GB, free: 4.008 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.267e-05/0.3433, allocations: 21.7 kB / 0.5602 GB, free: 3.98 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.3434, allocations: 322.8 kB / 0.5605 GB, free: 3.656 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.17e-05/0.3435, allocations: 15.98 kB / 0.5605 GB, free: 3.641 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.34e-05/0.3436, allocations: 39.42 kB / 0.5605 GB, free: 3.59 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001195/0.3437, allocations: 59.36 kB / 0.5606 GB, free: 3.52 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.92e-07/0.3437, allocations: 0 / 0.5606 GB, free: 3.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002003/0.3439, allocations: 89.5 kB / 0.5607 GB, free: 3.426 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.3439, allocations: 10.97 kB / 0.5607 GB, free: 3.418 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.91e-06/0.3439, allocations: 0 / 0.5607 GB, free: 3.418 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.3439, allocations: 0 / 0.5607 GB, free: 3.418 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.594e-05/0.344, allocations: 15.98 kB / 0.5607 GB, free: 3.402 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.344, allocations: 3.938 kB / 0.5607 GB, free: 3.398 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.253e-05/0.344, allocations: 8 kB / 0.5607 GB, free: 3.391 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.031e-06/0.344, allocations: 160 / 0.5607 GB, free: 3.391 MB / 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 9.693e-05/0.3441, allocations: 121.9 kB / 0.5608 GB, free: 3.262 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.656e-05/0.3442, allocations: 11.89 kB / 0.5608 GB, free: 3.25 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.687e-05/0.3442, allocations: 7.984 kB / 0.5609 GB, free: 3.234 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.3442, allocations: 0 / 0.5609 GB, free: 3.234 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.3442, allocations: 0 / 0.5609 GB, free: 3.234 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.3442, allocations: 4 kB / 0.5609 GB, free: 3.23 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001715/0.3444, allocations: 137.1 kB / 0.561 GB, free: 3.055 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.3444, allocations: 0 / 0.561 GB, free: 3.055 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.515e-05/0.3445, allocations: 11.98 kB / 0.561 GB, free: 3.043 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.3445, allocations: 0 / 0.561 GB, free: 3.043 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.088e-05/0.3445, allocations: 4 kB / 0.561 GB, free: 3.039 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.3445, allocations: 4 kB / 0.561 GB, free: 3.035 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.3445, allocations: 4.359 kB / 0.561 GB, free: 3.031 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002679/0.3447, allocations: 183.4 kB / 0.5612 GB, free: 2.836 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.026e-05/0.3448, allocations: 3.953 kB / 0.5612 GB, free: 2.832 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.583e-05/0.3448, allocations: 4 kB / 0.5612 GB, free: 2.828 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.051e-05/0.3448, allocations: 7.969 kB / 0.5612 GB, free: 2.82 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.737e-05/0.3449, allocations: 3.938 kB / 0.5612 GB, free: 2.816 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.017e-06/0.3449, allocations: 7.984 kB / 0.5612 GB, free: 2.809 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.603e-05/0.3449, allocations: 87.28 kB / 0.5613 GB, free: 2.723 MB / 398.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3449, allocations: 4.062 kB / 0.5613 GB, free: 2.719 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002296/0.3452, allocations: 11.94 kB / 0.5613 GB, free: 2.707 MB / 398.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.0005641/0.3457, allocations: 0.7008 MB / 0.562 GB, free: 1.98 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001507/0.3459, allocations: 39.91 kB / 0.562 GB, free: 1.941 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3459, allocations: 0 / 0.562 GB, free: 1.941 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.885e-05/0.3459, allocations: 19.92 kB / 0.5621 GB, free: 1.922 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002659/0.3462, allocations: 8.25 kB / 0.5621 GB, free: 1.914 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001542/0.3477, allocations: 1.378 MB / 0.5634 GB, free: 452 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.386e-05/0.3478, allocations: 63.34 kB / 0.5635 GB, free: 368 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.461e-05/0.3478, allocations: 7.984 kB / 0.5635 GB, free: 360 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.438e-05/0.3479, allocations: 19.38 kB / 0.5635 GB, free: 340 kB / 398.1 MB Notification: Performance of SimCode: time 3.5e-07/0.3479, allocations: 4 kB / 0.5635 GB, free: 336 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02886/0.3767, allocations: 2.019 MB / 0.5655 GB, free: 14.43 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.56, allocations: 6.438 kB / 0.5655 GB, free: 14.43 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.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_0_0_ModelicaTest_Blocks_IntegratorForceState.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/IntegratorForceState/IntegratorForceState.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 14.788050812203437]