Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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.IntegratorForceState,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_IntegratorForceState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.IntegratorForceState,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_IntegratorForceState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001632/0.001632, allocations: 117.6 kB / 17.78 MB, free: 5.234 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002239/0.002239, allocations: 204.7 kB / 18.74 MB, free: 4.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.584/1.584, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2669/0.2669, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002467/0.002467, allocations: 71.88 kB / 480.8 MB, free: 4.566 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4892/0.4917, allocations: 62.44 MB / 0.5305 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegratorForceState): time 0.003278/0.495, allocations: 1.552 MB / 0.532 GB, free: 12.19 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003843/0.4954, allocations: 80.33 kB / 0.5321 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001039/0.4956, allocations: 1.875 kB / 0.5321 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001352/0.4957, allocations: 3.938 kB / 0.5321 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.676e-05/0.4958, allocations: 5.719 kB / 0.5321 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002162/0.496, allocations: 23.5 kB / 0.5321 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001461/0.4962, allocations: 38.17 kB / 0.5322 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001251/0.4963, allocations: 13.36 kB / 0.5322 GB, free: 12.06 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.628e-05/0.4964, allocations: 13.31 kB / 0.5322 GB, free: 12.05 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.906e-05/0.4964, allocations: 15.58 kB / 0.5322 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.913e-05/0.4965, allocations: 2.125 kB / 0.5322 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.164e-05/0.4965, allocations: 2.281 kB / 0.5322 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.591e-05/0.4965, allocations: 10.2 kB / 0.5322 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.777e-05/0.4966, allocations: 14.88 kB / 0.5322 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000175/0.4967, allocations: 37.94 kB / 0.5323 GB, free: 12 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.637e-06/0.4968, allocations: 0 / 0.5323 GB, free: 12 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.985e-06/0.4968, allocations: 0 / 0.5323 GB, free: 12 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.083e-06/0.4968, allocations: 1.312 kB / 0.5323 GB, free: 12 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.000652/0.4975, allocations: 363.2 kB / 0.5326 GB, free: 11.61 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.511e-05/0.4975, allocations: 8.438 kB / 0.5326 GB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.524e-05/0.4976, allocations: 32.78 kB / 0.5327 GB, free: 11.57 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.995e-05/0.4977, allocations: 7.766 kB / 0.5327 GB, free: 11.57 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003715/0.498, allocations: 182.4 kB / 0.5328 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.521e-05/0.4981, allocations: 3.594 kB / 0.5328 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.109e-05/0.4981, allocations: 384 / 0.5328 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002426/0.4984, allocations: 78.48 kB / 0.5329 GB, free: 11.28 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.4984, allocations: 11.81 kB / 0.5329 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.232e-05/0.4984, allocations: 1.656 kB / 0.5329 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.199e-06/0.4984, allocations: 0 / 0.5329 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.476e-05/0.4985, allocations: 21.89 kB / 0.533 GB, free: 11.26 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006063/0.4991, allocations: 460.8 kB / 0.5334 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001732/0.4993, allocations: 38.62 kB / 0.5334 GB, free: 10.74 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.042e-05/0.4994, allocations: 15.89 kB / 0.5334 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.895e-05/0.4994, allocations: 3.656 kB / 0.5334 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.077e-05/0.4994, allocations: 34.56 kB / 0.5335 GB, free: 10.69 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 3.286e-06/0.4995, allocations: 0 / 0.5335 GB, free: 10.69 MB / 398.1 MB Notification: Performance of matching and sorting (n=4): time 0.0005645/0.5, allocations: 106 kB / 0.5336 GB, free: 10.62 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.819e-05/0.5001, allocations: 52.78 kB / 0.5336 GB, free: 10.55 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000118/0.5002, allocations: 118.2 kB / 0.5337 GB, free: 10.44 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.798e-05/0.5002, allocations: 25.7 kB / 0.5338 GB, free: 10.41 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.533e-05/0.5003, allocations: 98.77 kB / 0.5339 GB, free: 10.31 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.446e-05/0.5003, allocations: 14.66 kB / 0.5339 GB, free: 10.3 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.856e-05/0.5004, allocations: 25.83 kB / 0.5339 GB, free: 10.27 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.5005, allocations: 317.5 kB / 0.5342 GB, free: 9.957 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.776e-05/0.5006, allocations: 20.17 kB / 0.5342 GB, free: 9.945 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.624e-05/0.5007, allocations: 42.41 kB / 0.5343 GB, free: 9.902 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001438/0.5008, allocations: 62.61 kB / 0.5343 GB, free: 9.848 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.5008, allocations: 1.375 kB / 0.5343 GB, free: 9.848 MB / 398.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001937/0.501, allocations: 81.09 kB / 0.5344 GB, free: 9.793 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.132e-05/0.5011, allocations: 5.344 kB / 0.5344 GB, free: 9.793 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-06/0.5011, allocations: 1.312 kB / 0.5344 GB, free: 9.793 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.025e-05/0.5011, allocations: 5.469 kB / 0.5344 GB, free: 9.789 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.561e-05/0.5012, allocations: 22.58 kB / 0.5344 GB, free: 9.777 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.5012, allocations: 0 / 0.5344 GB, free: 9.777 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.177e-05/0.5013, allocations: 2.906 kB / 0.5344 GB, free: 9.777 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.746e-06/0.5013, allocations: 2.781 kB / 0.5344 GB, free: 9.777 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 0.0001004/0.5014, allocations: 116.7 kB / 0.5346 GB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.142e-05/0.5014, allocations: 6.234 kB / 0.5346 GB, free: 9.652 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.377e-05/0.5015, allocations: 13.39 kB / 0.5346 GB, free: 9.637 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.5015, allocations: 1.5 kB / 0.5346 GB, free: 9.637 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.5015, allocations: 4 kB / 0.5346 GB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.5015, allocations: 1.156 kB / 0.5346 GB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001982/0.5017, allocations: 174.4 kB / 0.5347 GB, free: 9.422 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.5017, allocations: 0 / 0.5347 GB, free: 9.422 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.078e-05/0.5018, allocations: 13.8 kB / 0.5348 GB, free: 9.418 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.5018, allocations: 0 / 0.5348 GB, free: 9.418 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.06e-05/0.5018, allocations: 1.344 kB / 0.5348 GB, free: 9.418 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.5018, allocations: 0 / 0.5348 GB, free: 9.418 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/0.5018, allocations: 3.984 kB / 0.5348 GB, free: 9.414 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002795/0.5021, allocations: 178.4 kB / 0.5349 GB, free: 9.254 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.994e-05/0.5022, allocations: 82.31 kB / 0.535 GB, free: 9.156 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.52e-05/0.5022, allocations: 0.9688 kB / 0.535 GB, free: 9.156 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.513e-05/0.5023, allocations: 10.64 kB / 0.535 GB, free: 9.148 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.286e-05/0.5023, allocations: 1.312 kB / 0.535 GB, free: 9.148 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.312e-06/0.5023, allocations: 4.688 kB / 0.535 GB, free: 9.145 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.664e-05/0.5024, allocations: 91.36 kB / 0.5351 GB, free: 9.062 MB / 398.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.5024, allocations: 4.062 kB / 0.5351 GB, free: 9.059 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002313/0.5026, allocations: 9.406 kB / 0.5351 GB, free: 9.055 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.000623/0.5033, allocations: 0.7043 MB / 0.5358 GB, free: 8.367 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001869/0.5035, allocations: 43.61 kB / 0.5359 GB, free: 8.348 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.5035, allocations: 3.938 kB / 0.5359 GB, free: 8.344 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.647e-05/0.5035, allocations: 15.08 kB / 0.5359 GB, free: 8.34 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002956/0.5038, allocations: 8.438 kB / 0.5359 GB, free: 8.336 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001617/0.5055, allocations: 1.368 MB / 0.5372 GB, free: 7.008 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003172/0.5058, allocations: 0.69 MB / 0.5379 GB, free: 6.301 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.588e-05/0.5059, allocations: 2.844 kB / 0.5379 GB, free: 6.301 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.631e-05/0.5059, allocations: 14.31 kB / 0.5379 GB, free: 6.289 MB / 398.1 MB Notification: Performance of SimCode: time 1.322e-06/0.5059, allocations: 0 / 0.5379 GB, free: 6.289 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02267/0.5286, allocations: 1.511 MB / 0.5394 GB, free: 5.438 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.867/8.395, allocations: 14.53 kB / 0.5394 GB, free: 5.43 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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.0004 ModelicaTest_trunk_ModelicaTest_Blocks_IntegratorForceState.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.IntegratorForceState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches