Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.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) 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(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001487/0.001487, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001485/0.001485, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.602/1.602, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002202/0.002202, allocations: 63.89 kB / 358.2 MB, free: 13.49 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3479/0.3501, allocations: 50.53 MB / 408.7 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.003048/0.3532, allocations: 1.885 MB / 410.6 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008199/0.3541, allocations: 486.8 kB / 411.1 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.792e-05/0.3542, allocations: 4 kB / 411.1 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001144/0.3543, allocations: 15.81 kB / 411.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.818e-05/0.3544, allocations: 23.78 kB / 411.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001769/0.3546, allocations: 35.95 kB / 411.2 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001628/0.3547, allocations: 103.6 kB / 411.3 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001377/0.3549, allocations: 37.38 kB / 411.3 MB, free: 15 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.162e-05/0.355, allocations: 43.86 kB / 411.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.766e-05/0.355, allocations: 51.75 kB / 411.4 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.12e-05/0.3551, allocations: 8 kB / 411.4 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.726e-05/0.3551, allocations: 8 kB / 411.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.84e-05/0.3551, allocations: 19.92 kB / 411.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.489e-05/0.3552, allocations: 43.75 kB / 411.5 MB, free: 14.83 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001715/0.3554, allocations: 106.5 kB / 411.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.3554, allocations: 0 / 411.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3554, allocations: 0 / 411.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.3554, allocations: 0 / 411.6 MB, free: 14.73 MB / 334.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.0005897/0.356, allocations: 415.2 kB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.356, allocations: 8.031 kB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.803e-05/0.3561, allocations: 42.73 kB / 412 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.724e-05/0.3561, allocations: 12.89 kB / 412 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002495/0.3564, allocations: 196.2 kB / 412.2 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.221e-05/0.3564, allocations: 4.562 kB / 412.2 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.978e-05/0.3565, allocations: 16.08 kB / 412.3 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002693/0.3567, allocations: 122.9 kB / 412.4 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.3567, allocations: 0 / 412.4 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.426e-05/0.3568, allocations: 4 kB / 412.4 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.438e-06/0.3568, allocations: 7.984 kB / 412.4 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002303/0.357, allocations: 67.89 kB / 412.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006615/0.3577, allocations: 0.5288 MB / 413 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001931/0.3579, allocations: 74.61 kB / 413.1 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001205/0.358, allocations: 40.83 kB / 413.1 MB, free: 13.03 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.548e-05/0.358, allocations: 3.938 kB / 413.1 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.422e-05/0.3581, allocations: 38.5 kB / 413.1 MB, free: 12.98 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.202e-06/0.3581, allocations: 3.938 kB / 413.1 MB, free: 12.97 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004157/0.3585, allocations: 125.7 kB / 413.3 MB, free: 12.84 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.622e-05/0.3586, allocations: 55.41 kB / 413.3 MB, free: 12.78 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.444e-05/0.3587, allocations: 121.8 kB / 413.4 MB, free: 12.65 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.361e-05/0.3587, allocations: 29.7 kB / 413.5 MB, free: 12.61 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.488e-05/0.3588, allocations: 116 kB / 413.6 MB, free: 12.5 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.448e-05/0.3588, allocations: 27.75 kB / 413.6 MB, free: 12.47 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.45e-05/0.3588, allocations: 29.7 kB / 413.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.359, allocations: 318.8 kB / 413.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001152/0.3591, allocations: 35.97 kB / 414 MB, free: 12.08 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001162/0.3592, allocations: 68.2 kB / 414 MB, free: 12 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002264/0.3594, allocations: 104.2 kB / 414.2 MB, free: 11.88 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3595, allocations: 4 kB / 414.2 MB, free: 11.88 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.00028/0.3597, allocations: 137.4 kB / 414.3 MB, free: 11.73 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.3598, allocations: 4 kB / 414.3 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.3598, allocations: 4 kB / 414.3 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.3598, allocations: 0 / 414.3 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001653/0.36, allocations: 31.92 kB / 414.3 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.795e-06/0.36, allocations: 4 kB / 414.3 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.365e-05/0.3601, allocations: 16.11 kB / 414.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.006e-05/0.3601, allocations: 4 kB / 414.4 MB, free: 11.67 MB / 334.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.858e-05/0.3602, allocations: 129.7 kB / 414.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.899e-05/0.3602, allocations: 7.953 kB / 414.5 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.298e-05/0.3603, allocations: 12.38 kB / 414.5 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.3603, allocations: 0 / 414.5 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.3603, allocations: 3.984 kB / 414.5 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/0.3603, allocations: 96 / 414.5 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001998/0.3605, allocations: 205.5 kB / 414.7 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.011e-06/0.3605, allocations: 0 / 414.7 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001358/0.3606, allocations: 27.91 kB / 414.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.3606, allocations: 3.984 kB / 414.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.073e-05/0.3607, allocations: 4 kB / 414.7 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.3607, allocations: 0 / 414.7 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.3607, allocations: 0 / 414.7 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004149/0.3611, allocations: 243.2 kB / 415 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.453e-05/0.3612, allocations: 89.06 kB / 415.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.818e-05/0.3612, allocations: 0 / 415.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.335e-05/0.3613, allocations: 8.031 kB / 415.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.929e-05/0.3613, allocations: 4 kB / 415.1 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.138e-06/0.3613, allocations: 0 / 415.1 MB, free: 10.85 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.915e-05/0.3614, allocations: 103.2 kB / 415.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.442e-06/0.3614, allocations: 0 / 415.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002439/0.3617, allocations: 31.88 kB / 415.2 MB, free: 10.72 MB / 334.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.0006659/0.3623, allocations: 0.7553 MB / 416 MB, free: 9.938 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002783/0.3626, allocations: 87.92 kB / 416 MB, free: 9.852 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3626, allocations: 0 / 416 MB, free: 9.852 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001091/0.3627, allocations: 35.91 kB / 416.1 MB, free: 9.816 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003295/0.3631, allocations: 33.38 kB / 416.1 MB, free: 9.793 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002017/0.3651, allocations: 1.724 MB / 417.8 MB, free: 7.961 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002966/0.3654, allocations: 0.7078 MB / 418.5 MB, free: 7.227 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.545e-05/0.3655, allocations: 12.42 kB / 418.6 MB, free: 7.215 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.382e-05/0.3655, allocations: 31.42 kB / 418.6 MB, free: 7.184 MB / 334.1 MB Notification: Performance of SimCode: time 1.763e-06/0.3655, allocations: 0 / 418.6 MB, free: 7.184 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02236/0.3879, allocations: 2.374 MB / 421 MB, free: 4.918 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.932/8.32, allocations: 11.36 kB / 421 MB, free: 4.91 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches