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.001244/0.001245, allocations: 109.8 kB / 17.06 MB, free: 5.977 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.001182/0.001182, 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.435/1.435, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001958/0.001958, allocations: 47.94 kB / 350.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3238/0.3257, allocations: 49.43 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.003544/0.3293, allocations: 1.874 MB / 402.1 MB, free: 6.949 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008276/0.3302, allocations: 450.8 kB / 402.5 MB, free: 6.504 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001153/0.3303, allocations: 8 kB / 402.5 MB, free: 6.496 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000124/0.3305, allocations: 15.8 kB / 402.5 MB, free: 6.48 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.435e-05/0.3305, allocations: 23.78 kB / 402.6 MB, free: 6.457 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001659/0.3307, allocations: 31.95 kB / 402.6 MB, free: 6.426 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001779/0.3309, allocations: 99.58 kB / 402.7 MB, free: 6.328 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001598/0.3311, allocations: 41.39 kB / 402.7 MB, free: 6.285 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.541e-05/0.3312, allocations: 39.86 kB / 402.8 MB, free: 6.246 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.475e-05/0.3313, allocations: 47.77 kB / 402.8 MB, free: 6.199 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.35e-05/0.3313, allocations: 8 kB / 402.8 MB, free: 6.191 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.843e-05/0.3313, allocations: 8 kB / 402.8 MB, free: 6.184 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.66e-05/0.3313, allocations: 15.92 kB / 402.9 MB, free: 6.168 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.101e-05/0.3314, allocations: 55.67 kB / 402.9 MB, free: 6.113 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001905/0.3316, allocations: 98.56 kB / 403 MB, free: 6.02 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.88e-06/0.3316, allocations: 0 / 403 MB, free: 6.02 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3316, allocations: 0 / 403 MB, free: 6.02 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.091e-06/0.3316, allocations: 7.938 kB / 403 MB, free: 6.012 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.0006396/0.3323, allocations: 411.2 kB / 403.4 MB, free: 5.562 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/0.3323, allocations: 8.031 kB / 403.4 MB, free: 5.555 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.382e-05/0.3324, allocations: 42.73 kB / 403.5 MB, free: 5.504 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.905e-05/0.3324, allocations: 12.84 kB / 403.5 MB, free: 5.492 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002541/0.3327, allocations: 204.2 kB / 403.7 MB, free: 5.254 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.311e-05/0.3327, allocations: 4.562 kB / 403.7 MB, free: 5.25 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.145e-05/0.3328, allocations: 12.12 kB / 403.7 MB, free: 5.238 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002828/0.333, allocations: 120.9 kB / 403.8 MB, free: 5.109 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/0.3331, allocations: 0 / 403.8 MB, free: 5.109 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.493e-05/0.3331, allocations: 4 kB / 403.8 MB, free: 5.105 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.3331, allocations: 4 kB / 403.8 MB, free: 5.102 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002258/0.3333, allocations: 67.88 kB / 403.9 MB, free: 5.035 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006881/0.334, allocations: 0.5325 MB / 404.4 MB, free: 4.434 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001952/0.3342, allocations: 74.61 kB / 404.5 MB, free: 4.352 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000111/0.3344, allocations: 48.77 kB / 404.5 MB, free: 4.301 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.382e-05/0.3344, allocations: 0 / 404.5 MB, free: 4.301 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.35e-05/0.3344, allocations: 30.56 kB / 404.6 MB, free: 4.262 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 9.32e-07/0.3344, allocations: 0 / 404.6 MB, free: 4.262 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004144/0.3348, allocations: 121.9 kB / 404.7 MB, free: 4.137 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.687e-05/0.3349, allocations: 55.39 kB / 404.7 MB, free: 4.07 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001171/0.335, allocations: 129.8 kB / 404.9 MB, free: 3.934 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.911e-05/0.335, allocations: 29.64 kB / 404.9 MB, free: 3.898 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.046e-05/0.3351, allocations: 111.9 kB / 405 MB, free: 3.785 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.639e-05/0.3351, allocations: 31.73 kB / 405 MB, free: 3.754 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.241e-05/0.3352, allocations: 25.72 kB / 405.1 MB, free: 3.723 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.3353, allocations: 322.8 kB / 405.4 MB, free: 3.398 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001095/0.3354, allocations: 39.91 kB / 405.4 MB, free: 3.359 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001201/0.3356, allocations: 70.27 kB / 405.5 MB, free: 3.277 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002289/0.3358, allocations: 108.2 kB / 405.6 MB, free: 3.156 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3358, allocations: 0 / 405.6 MB, free: 3.156 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002877/0.3361, allocations: 133.4 kB / 405.7 MB, free: 3.02 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.3361, allocations: 4 kB / 405.7 MB, free: 3.016 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.3361, allocations: 4 kB / 405.7 MB, free: 3.012 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.3362, allocations: 3.984 kB / 405.7 MB, free: 3.008 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001699/0.3363, allocations: 36.05 kB / 405.8 MB, free: 2.973 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.3364, allocations: 4 kB / 405.8 MB, free: 2.969 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.841e-05/0.3364, allocations: 15.94 kB / 405.8 MB, free: 2.953 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.927e-06/0.3365, allocations: 4 kB / 405.8 MB, free: 2.949 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 0.0001006/0.3366, allocations: 125.7 kB / 405.9 MB, free: 2.816 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.985e-05/0.3366, allocations: 7.953 kB / 405.9 MB, free: 2.809 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.698e-05/0.3367, allocations: 12.38 kB / 405.9 MB, free: 2.797 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.3367, allocations: 0 / 405.9 MB, free: 2.797 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.3367, allocations: 4 kB / 405.9 MB, free: 2.793 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.3367, allocations: 0 / 405.9 MB, free: 2.793 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002105/0.3369, allocations: 197.6 kB / 406.1 MB, free: 2.551 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.3369, allocations: 7.938 kB / 406.1 MB, free: 2.543 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001352/0.337, allocations: 19.98 kB / 406.2 MB, free: 2.523 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.569e-06/0.3371, allocations: 4 kB / 406.2 MB, free: 2.52 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.2e-05/0.3371, allocations: 0 / 406.2 MB, free: 2.52 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.3371, allocations: 3.984 kB / 406.2 MB, free: 2.516 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3371, allocations: 0 / 406.2 MB, free: 2.516 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004142/0.3375, allocations: 235.7 kB / 406.4 MB, free: 2.27 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.977e-05/0.3376, allocations: 85.06 kB / 406.5 MB, free: 2.168 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.169e-05/0.3376, allocations: 4.094 kB / 406.5 MB, free: 2.164 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.18e-05/0.3377, allocations: 8.031 kB / 406.5 MB, free: 2.156 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.648e-05/0.3378, allocations: 11.92 kB / 406.5 MB, free: 2.145 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.713e-06/0.3378, allocations: 0 / 406.5 MB, free: 2.145 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.88e-05/0.3378, allocations: 110.7 kB / 406.6 MB, free: 2.039 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3378, allocations: 0 / 406.6 MB, free: 2.039 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002437/0.3381, allocations: 23.89 kB / 406.6 MB, free: 2.016 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.0007348/0.3388, allocations: 0.7748 MB / 407.4 MB, free: 1.215 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002912/0.3391, allocations: 83.95 kB / 407.5 MB, free: 1.133 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3391, allocations: 3.938 kB / 407.5 MB, free: 1.129 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001048/0.3393, allocations: 35.97 kB / 407.5 MB, free: 1.094 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003426/0.3396, allocations: 19.98 kB / 407.6 MB, free: 1.074 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002054/0.3417, allocations: 1.724 MB / 409.3 MB, free: 15.24 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002918/0.342, allocations: 0.7039 MB / 410 MB, free: 14.51 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.422e-05/0.342, allocations: 8.438 kB / 410 MB, free: 14.5 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.405e-05/0.3421, allocations: 31.42 kB / 410 MB, free: 14.47 MB / 334.1 MB Notification: Performance of SimCode: time 2.144e-06/0.3421, allocations: 0 / 410 MB, free: 14.47 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02406/0.3662, allocations: 2.394 MB / 412.4 MB, free: 12.19 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.23/8.597, allocations: 8.703 kB / 412.4 MB, free: 12.18 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