Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001639/0.001639, allocations: 106.6 kB / 17.06 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001986/0.001986, allocations: 198.8 kB / 18.01 MB, free: 5.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.431/1.431, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 47.92 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.25/0.2512, allocations: 49.42 MB / 400.2 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.003171/0.2544, allocations: 1.874 MB / 402.1 MB, free: 6.922 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007903/0.2552, allocations: 454.8 kB / 402.5 MB, free: 6.473 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001224/0.2554, allocations: 7.938 kB / 402.5 MB, free: 6.465 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001031/0.2555, allocations: 11.86 kB / 402.5 MB, free: 6.453 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.831e-05/0.2556, allocations: 23.78 kB / 402.6 MB, free: 6.43 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001476/0.2558, allocations: 31.95 kB / 402.6 MB, free: 6.398 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001694/0.2559, allocations: 103.6 kB / 402.7 MB, free: 6.297 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001366/0.2561, allocations: 45.38 kB / 402.7 MB, free: 6.25 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.925e-05/0.2562, allocations: 43.78 kB / 402.8 MB, free: 6.207 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.541e-05/0.2562, allocations: 47.77 kB / 402.8 MB, free: 6.16 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.036e-05/0.2563, allocations: 8 kB / 402.8 MB, free: 6.152 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.774e-05/0.2563, allocations: 8 kB / 402.8 MB, free: 6.145 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.469e-05/0.2563, allocations: 19.94 kB / 402.9 MB, free: 6.125 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.121e-05/0.2564, allocations: 43.73 kB / 402.9 MB, free: 6.082 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001728/0.2566, allocations: 102.6 kB / 403 MB, free: 5.984 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.2566, allocations: 0 / 403 MB, free: 5.984 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2566, allocations: 0 / 403 MB, free: 5.984 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.066e-06/0.2566, allocations: 0 / 403 MB, free: 5.984 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0005395/0.2571, allocations: 411.2 kB / 403.4 MB, free: 5.535 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.2572, allocations: 8.031 kB / 403.4 MB, free: 5.527 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.632e-05/0.2572, allocations: 46.67 kB / 403.5 MB, free: 5.473 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.537e-05/0.2573, allocations: 16.84 kB / 403.5 MB, free: 5.457 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002299/0.2575, allocations: 196.2 kB / 403.7 MB, free: 5.227 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.352e-05/0.2575, allocations: 8.562 kB / 403.7 MB, free: 5.219 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.707e-05/0.2576, allocations: 8.125 kB / 403.7 MB, free: 5.211 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00026/0.2578, allocations: 120.6 kB / 403.8 MB, free: 5.082 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.2579, allocations: 0 / 403.8 MB, free: 5.082 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.216e-05/0.2579, allocations: 4 kB / 403.8 MB, free: 5.078 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.141e-06/0.2579, allocations: 4 kB / 403.8 MB, free: 5.074 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002167/0.2581, allocations: 71.94 kB / 403.9 MB, free: 5.004 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006414/0.2588, allocations: 0.5324 MB / 404.4 MB, free: 4.406 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001863/0.259, allocations: 78.55 kB / 404.5 MB, free: 4.32 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000109/0.2591, allocations: 40.83 kB / 404.5 MB, free: 4.277 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.286e-05/0.2591, allocations: 0 / 404.5 MB, free: 4.277 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.153e-05/0.2591, allocations: 30.56 kB / 404.6 MB, free: 4.238 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.052e-06/0.2591, allocations: 4 kB / 404.6 MB, free: 4.234 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003943/0.2595, allocations: 133.8 kB / 404.7 MB, free: 4.098 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.623e-05/0.2596, allocations: 51.41 kB / 404.7 MB, free: 4.035 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.661e-05/0.2597, allocations: 125.2 kB / 404.9 MB, free: 3.906 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.417e-05/0.2597, allocations: 29.64 kB / 404.9 MB, free: 3.871 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.109e-05/0.2598, allocations: 115.9 kB / 405 MB, free: 3.754 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.233e-05/0.2598, allocations: 27.75 kB / 405 MB, free: 3.727 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5e-05/0.2598, allocations: 29.7 kB / 405.1 MB, free: 3.691 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.482e-05/0.2599, allocations: 322.8 kB / 405.4 MB, free: 3.367 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001079/0.2601, allocations: 35.97 kB / 405.4 MB, free: 3.332 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001162/0.2602, allocations: 64.27 kB / 405.5 MB, free: 3.254 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002181/0.2604, allocations: 108.2 kB / 405.6 MB, free: 3.133 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.2604, allocations: 4 kB / 405.6 MB, free: 3.129 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002884/0.2607, allocations: 133.4 kB / 405.7 MB, free: 2.992 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.423e-05/0.2607, allocations: 8.125 kB / 405.7 MB, free: 2.984 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.2608, allocations: 4 kB / 405.7 MB, free: 2.98 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.2608, allocations: 0 / 405.7 MB, free: 2.98 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001563/0.2609, allocations: 31.98 kB / 405.8 MB, free: 2.949 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.2609, allocations: 4 kB / 405.8 MB, free: 2.945 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.38e-05/0.261, allocations: 11.94 kB / 405.8 MB, free: 2.934 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.786e-06/0.261, allocations: 4 kB / 405.8 MB, free: 2.93 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.447e-05/0.2611, allocations: 133.8 kB / 405.9 MB, free: 2.789 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.478e-05/0.2612, allocations: 19.89 kB / 405.9 MB, free: 2.77 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.103e-05/0.2612, allocations: 8.375 kB / 405.9 MB, free: 2.758 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.2612, allocations: 0 / 405.9 MB, free: 2.758 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.2612, allocations: 3.984 kB / 405.9 MB, free: 2.754 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.2612, allocations: 3.984 kB / 405.9 MB, free: 2.75 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001855/0.2614, allocations: 197.6 kB / 406.1 MB, free: 2.508 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.2614, allocations: 0 / 406.1 MB, free: 2.508 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001347/0.2616, allocations: 23.98 kB / 406.2 MB, free: 2.484 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/0.2616, allocations: 3.984 kB / 406.2 MB, free: 2.48 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.2616, allocations: 0 / 406.2 MB, free: 2.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.2616, allocations: 4 kB / 406.2 MB, free: 2.477 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.2616, allocations: 0 / 406.2 MB, free: 2.477 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003801/0.262, allocations: 235.3 kB / 406.4 MB, free: 2.23 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.862e-05/0.2621, allocations: 85.06 kB / 406.5 MB, free: 2.129 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.643e-05/0.2621, allocations: 0 / 406.5 MB, free: 2.129 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.102e-05/0.2622, allocations: 8.031 kB / 406.5 MB, free: 2.121 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.63e-05/0.2622, allocations: 8 kB / 406.5 MB, free: 2.113 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.881e-06/0.2622, allocations: 0 / 406.5 MB, free: 2.113 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.526e-05/0.2623, allocations: 107.2 kB / 406.6 MB, free: 2.008 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2623, allocations: 0 / 406.6 MB, free: 2.008 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002475/0.2625, allocations: 27.89 kB / 406.6 MB, free: 1.98 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (load.phi,load.w,PI.x) * 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 (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 Backend phase and start with SimCode phase: time 0.0006014/0.2632, allocations: 0.7751 MB / 407.4 MB, free: 1.18 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002559/0.2634, allocations: 79.94 kB / 407.5 MB, free: 1.102 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.2634, allocations: 0 / 407.5 MB, free: 1.102 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000103/0.2635, allocations: 32.22 kB / 407.5 MB, free: 1.07 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003179/0.2639, allocations: 30.58 kB / 407.5 MB, free: 1.043 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001873/0.2658, allocations: 1.728 MB / 409.3 MB, free: 15.21 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002318/0.266, allocations: 0.7039 MB / 410 MB, free: 14.48 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.564e-05/0.2661, allocations: 8.422 kB / 410 MB, free: 14.47 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.675e-05/0.2661, allocations: 31.42 kB / 410 MB, free: 14.44 MB / 334.1 MB Notification: Performance of SimCode: time 2.515e-06/0.2661, allocations: 4 kB / 410 MB, free: 14.43 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01877/0.2849, allocations: 2.382 MB / 412.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.909/8.194, allocations: 16.06 kB / 412.4 MB, free: 12.15 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches