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.00172/0.00172, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.002085/0.002085, allocations: 216.5 kB / 24.51 MB, free: 3.914 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.536/1.536, allocations: 230.6 MB / 258.3 MB, free: 7.73 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.2311/0.2311, allocations: 44.94 MB / 359.6 MB, free: 6.113 MB / 286.1 MB " [Timeout remaining time 180] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.IntegratorForceState,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_IntegratorForceState",fmuType="cs",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.002021/0.002021, allocations: 71.89 kB / 0.4938 GB, free: 10.54 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3619/0.364, allocations: 65.47 MB / 0.5577 GB, free: 7.324 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegratorForceState): time 0.002963/0.3669, allocations: 1.544 MB / 0.5592 GB, free: 5.977 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002615/0.3672, allocations: 75.73 kB / 0.5593 GB, free: 5.902 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.156e-05/0.3673, allocations: 0 / 0.5593 GB, free: 5.902 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001126/0.3674, allocations: 11.92 kB / 0.5593 GB, free: 5.891 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.134e-05/0.3674, allocations: 3.938 kB / 0.5593 GB, free: 5.887 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001254/0.3675, allocations: 15.98 kB / 0.5593 GB, free: 5.871 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001059/0.3676, allocations: 35.86 kB / 0.5594 GB, free: 5.836 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.121e-05/0.3677, allocations: 17.94 kB / 0.5594 GB, free: 5.82 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.85e-05/0.3677, allocations: 11.94 kB / 0.5594 GB, free: 5.809 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.102e-05/0.3678, allocations: 19.86 kB / 0.5594 GB, free: 5.789 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.508e-05/0.3678, allocations: 4 kB / 0.5594 GB, free: 5.785 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.858e-06/0.3678, allocations: 4 kB / 0.5594 GB, free: 5.781 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.753e-05/0.3678, allocations: 7.938 kB / 0.5594 GB, free: 5.773 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.766e-05/0.3679, allocations: 11.94 kB / 0.5594 GB, free: 5.762 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000102/0.368, allocations: 43.75 kB / 0.5595 GB, free: 5.719 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.368, allocations: 0 / 0.5595 GB, free: 5.719 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.368, allocations: 0 / 0.5595 GB, free: 5.719 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.656e-06/0.368, allocations: 0 / 0.5595 GB, free: 5.719 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.000423/0.3684, allocations: 278.2 kB / 0.5597 GB, free: 5.414 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.39e-05/0.3685, allocations: 8.031 kB / 0.5598 GB, free: 5.406 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.349e-05/0.3685, allocations: 192 / 0.5598 GB, free: 5.406 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.424e-05/0.3685, allocations: 38.75 kB / 0.5598 GB, free: 5.359 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.635e-05/0.3685, allocations: 8.891 kB / 0.5598 GB, free: 5.352 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002023/0.3687, allocations: 122.5 kB / 0.5599 GB, free: 5.207 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.125e-05/0.3687, allocations: 4.359 kB / 0.5599 GB, free: 5.203 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.977e-05/0.3688, allocations: 4.375 kB / 0.5599 GB, free: 5.199 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001803/0.3689, allocations: 80.55 kB / 0.56 GB, free: 5.105 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.335e-06/0.369, allocations: 0 / 0.56 GB, free: 5.105 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.646e-06/0.369, allocations: 0 / 0.56 GB, free: 5.105 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.369, allocations: 0 / 0.56 GB, free: 5.105 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.57e-05/0.3691, allocations: 31.92 kB / 0.56 GB, free: 5.074 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000516/0.3696, allocations: 412.2 kB / 0.5604 GB, free: 4.621 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001646/0.3697, allocations: 46.5 kB / 0.5605 GB, free: 4.566 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.952e-05/0.3698, allocations: 12.94 kB / 0.5605 GB, free: 4.551 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.413e-05/0.3698, allocations: 4 kB / 0.5605 GB, free: 4.547 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.408e-05/0.3698, allocations: 34.56 kB / 0.5605 GB, free: 4.504 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.3698, allocations: 0 / 0.5605 GB, free: 4.504 MB / 398.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004612/0.3703, allocations: 113.5 kB / 0.5606 GB, free: 4.387 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.725e-05/0.3703, allocations: 51.41 kB / 0.5607 GB, free: 4.324 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001025/0.3704, allocations: 113.8 kB / 0.5608 GB, free: 4.203 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.657e-05/0.3705, allocations: 25.7 kB / 0.5608 GB, free: 4.172 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.602e-05/0.3705, allocations: 100.4 kB / 0.5609 GB, free: 4.07 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.514e-05/0.3705, allocations: 11.84 kB / 0.5609 GB, free: 4.059 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.155e-05/0.3706, allocations: 21.72 kB / 0.5609 GB, free: 4.031 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001776/0.3708, allocations: 322.8 kB / 0.5612 GB, free: 3.707 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.126e-05/0.3708, allocations: 15.94 kB / 0.5613 GB, free: 3.691 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.846e-05/0.3709, allocations: 51.34 kB / 0.5613 GB, free: 3.629 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001164/0.371, allocations: 63.41 kB / 0.5614 GB, free: 3.555 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.92e-07/0.371, allocations: 0 / 0.5614 GB, free: 3.555 MB / 398.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000169/0.3712, allocations: 85.5 kB / 0.5614 GB, free: 3.465 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.3712, allocations: 6.969 kB / 0.5615 GB, free: 3.461 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.3712, allocations: 96 / 0.5615 GB, free: 3.461 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.3712, allocations: 8 kB / 0.5615 GB, free: 3.453 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.057e-05/0.3713, allocations: 8 kB / 0.5615 GB, free: 3.445 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.12e-06/0.3713, allocations: 0 / 0.5615 GB, free: 3.445 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.809e-05/0.3713, allocations: 11.98 kB / 0.5615 GB, free: 3.434 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.044e-05/0.3713, allocations: 7.938 kB / 0.5615 GB, free: 3.426 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.1e-05/0.3714, allocations: 117.8 kB / 0.5616 GB, free: 3.301 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.614e-05/0.3714, allocations: 4.328 kB / 0.5616 GB, free: 3.297 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.588e-05/0.3715, allocations: 8 kB / 0.5616 GB, free: 3.281 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.3715, allocations: 0 / 0.5616 GB, free: 3.281 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.3715, allocations: 3.984 kB / 0.5616 GB, free: 3.277 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.3715, allocations: 4 kB / 0.5616 GB, free: 3.273 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001708/0.3716, allocations: 140.7 kB / 0.5618 GB, free: 3.094 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.3716, allocations: 0 / 0.5618 GB, free: 3.094 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.329e-05/0.3717, allocations: 12 kB / 0.5618 GB, free: 3.082 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.3717, allocations: 0 / 0.5618 GB, free: 3.082 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.464e-06/0.3717, allocations: 0 / 0.5618 GB, free: 3.082 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.3717, allocations: 0 / 0.5618 GB, free: 3.082 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.015e-06/0.3717, allocations: 4 kB / 0.5618 GB, free: 3.078 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002453/0.372, allocations: 183.4 kB / 0.5619 GB, free: 2.883 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.127e-05/0.372, allocations: 12.05 kB / 0.562 GB, free: 2.871 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.405e-05/0.372, allocations: 0 / 0.562 GB, free: 2.871 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.369e-05/0.3721, allocations: 3.984 kB / 0.562 GB, free: 2.867 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.933e-05/0.3721, allocations: 4 kB / 0.562 GB, free: 2.863 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.647e-06/0.3721, allocations: 0 / 0.562 GB, free: 2.863 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.718e-05/0.3722, allocations: 95.2 kB / 0.5621 GB, free: 2.77 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3722, allocations: 3.938 kB / 0.5621 GB, free: 2.766 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002354/0.3724, allocations: 8.281 kB / 0.5621 GB, free: 2.758 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.0005675/0.373, allocations: 0.7125 MB / 0.5628 GB, free: 2.02 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001482/0.3731, allocations: 31.92 kB / 0.5628 GB, free: 1.988 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3731, allocations: 0 / 0.5628 GB, free: 1.988 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.961e-05/0.3732, allocations: 23.92 kB / 0.5628 GB, free: 1.965 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002749/0.3734, allocations: 11.94 kB / 0.5628 GB, free: 1.953 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001505/0.3749, allocations: 1.377 MB / 0.5642 GB, free: 496 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.411e-05/0.375, allocations: 71.33 kB / 0.5642 GB, free: 404 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.394e-05/0.3751, allocations: 4 kB / 0.5642 GB, free: 400 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.589e-05/0.3751, allocations: 11.44 kB / 0.5643 GB, free: 388 kB / 398.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3751, allocations: 0 / 0.5643 GB, free: 388 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02315/0.3982, allocations: 1.694 MB / 0.5659 GB, free: 14.82 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.73, allocations: 8 kB / 0.5659 GB, free: 14.81 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_IntegratorForceState_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 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.mat","/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.857769176014699]