Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",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.001396/0.001396, allocations: 105.9 kB / 17.06 MB, free: 6.004 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.001804/0.001804, allocations: 189.4 kB / 18 MB, free: 5.09 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.503/1.503, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002603/0.002603, allocations: 59.91 kB / 350.8 MB, free: 3.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3438/0.3464, allocations: 49.43 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.00435/0.3508, allocations: 2.002 MB / 402.2 MB, free: 6.812 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001267/0.3521, allocations: 0.5298 MB / 402.7 MB, free: 6.277 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000192/0.3524, allocations: 4 kB / 402.8 MB, free: 6.273 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001924/0.3526, allocations: 15.8 kB / 402.8 MB, free: 6.258 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002108/0.3529, allocations: 27.73 kB / 402.8 MB, free: 6.23 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003804/0.3533, allocations: 67.81 kB / 402.9 MB, free: 6.164 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002776/0.3536, allocations: 119.6 kB / 403 MB, free: 6.047 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000239/0.3538, allocations: 53.39 kB / 403 MB, free: 5.992 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001161/0.3539, allocations: 55.73 kB / 403.1 MB, free: 5.938 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001138/0.3541, allocations: 59.75 kB / 403.1 MB, free: 5.879 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.168e-05/0.3541, allocations: 8 kB / 403.1 MB, free: 5.871 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.853e-05/0.3541, allocations: 12 kB / 403.2 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.399e-05/0.3542, allocations: 27.86 kB / 403.2 MB, free: 5.832 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.353e-05/0.3543, allocations: 59.67 kB / 403.2 MB, free: 5.773 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002616/0.3546, allocations: 126.5 kB / 403.4 MB, free: 5.652 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3546, allocations: 7.875 kB / 403.4 MB, free: 5.645 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3546, allocations: 0 / 403.4 MB, free: 5.645 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.61e-06/0.3546, allocations: 0 / 403.4 MB, free: 5.645 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006991/0.3553, allocations: 442.8 kB / 403.8 MB, free: 5.164 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.3553, allocations: 12.03 kB / 403.8 MB, free: 5.152 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.888e-05/0.3554, allocations: 46.73 kB / 403.9 MB, free: 5.098 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.698e-05/0.3554, allocations: 12.84 kB / 403.9 MB, free: 5.086 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002792/0.3557, allocations: 200.2 kB / 404.1 MB, free: 4.852 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.578e-05/0.3558, allocations: 8.375 kB / 404.1 MB, free: 4.844 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.735e-05/0.3558, allocations: 12.38 kB / 404.1 MB, free: 4.832 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005156/0.3563, allocations: 265.7 kB / 404.4 MB, free: 4.551 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.377e-05/0.3563, allocations: 0 / 404.4 MB, free: 4.551 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.74e-05/0.3564, allocations: 8 kB / 404.4 MB, free: 4.543 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.857e-06/0.3564, allocations: 8 kB / 404.4 MB, free: 4.535 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002595/0.3566, allocations: 87.86 kB / 404.5 MB, free: 4.449 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007372/0.3574, allocations: 0.5844 MB / 405 MB, free: 3.789 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003855/0.3578, allocations: 147.9 kB / 405.2 MB, free: 3.617 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001739/0.358, allocations: 78.58 kB / 405.3 MB, free: 3.531 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.011e-05/0.358, allocations: 7.984 kB / 405.3 MB, free: 3.523 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.968e-05/0.3581, allocations: 34.56 kB / 405.3 MB, free: 3.48 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.343e-06/0.3581, allocations: 0 / 405.3 MB, free: 3.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.000566/0.3586, allocations: 193.5 kB / 405.5 MB, free: 3.285 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.329e-05/0.3587, allocations: 106.9 kB / 405.6 MB, free: 3.156 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001387/0.3589, allocations: 138.2 kB / 405.7 MB, free: 3.008 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.162e-05/0.3589, allocations: 25.7 kB / 405.8 MB, free: 2.977 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.555e-05/0.359, allocations: 112.3 kB / 405.9 MB, free: 2.863 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.821e-05/0.3591, allocations: 27.84 kB / 405.9 MB, free: 2.836 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.863e-05/0.3591, allocations: 37.66 kB / 405.9 MB, free: 2.793 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.3593, allocations: 322.8 kB / 406.2 MB, free: 2.469 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001191/0.3594, allocations: 39.91 kB / 406.3 MB, free: 2.43 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001812/0.3596, allocations: 135.4 kB / 406.4 MB, free: 2.25 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003255/0.3599, allocations: 197.5 kB / 406.6 MB, free: 2.008 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/0.3599, allocations: 3.938 kB / 406.6 MB, free: 2.004 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003965/0.3603, allocations: 189.7 kB / 406.8 MB, free: 1.812 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.192e-05/0.3604, allocations: 15.94 kB / 406.8 MB, free: 1.797 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.3604, allocations: 4 kB / 406.8 MB, free: 1.793 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.3604, allocations: 4 kB / 406.8 MB, free: 1.789 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001578/0.3606, allocations: 43.92 kB / 406.9 MB, free: 1.746 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.116e-05/0.3606, allocations: 11.98 kB / 406.9 MB, free: 1.734 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001085/0.3607, allocations: 19.89 kB / 406.9 MB, free: 1.715 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.692e-05/0.3607, allocations: 8 kB / 406.9 MB, free: 1.707 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001349/0.3609, allocations: 141.6 kB / 407 MB, free: 1.559 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001543/0.361, allocations: 89.53 kB / 407.1 MB, free: 1.465 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.798e-05/0.3611, allocations: 16.72 kB / 407.1 MB, free: 1.445 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.614e-06/0.3611, allocations: 8 kB / 407.2 MB, free: 1.438 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.3612, allocations: 0 / 407.2 MB, free: 1.438 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.3612, allocations: 0 / 407.2 MB, free: 1.438 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003127/0.3615, allocations: 201.5 kB / 407.4 MB, free: 1.191 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.3615, allocations: 4 kB / 407.4 MB, free: 1.188 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000183/0.3617, allocations: 39.91 kB / 407.4 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.3617, allocations: 4 kB / 407.4 MB, free: 1.145 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.128e-05/0.3617, allocations: 4 kB / 407.4 MB, free: 1.141 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.011e-06/0.3617, allocations: 4 kB / 407.4 MB, free: 1.137 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.3617, allocations: 0 / 407.4 MB, free: 1.137 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005704/0.3623, allocations: 390.6 kB / 407.8 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.849e-05/0.3624, allocations: 92.94 kB / 407.9 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.229e-05/0.3624, allocations: 4 kB / 407.9 MB, free: 0.625 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001332/0.3625, allocations: 7.984 kB / 407.9 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.24e-05/0.3626, allocations: 4 kB / 407.9 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.18e-05/0.3626, allocations: 8 kB / 407.9 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.382e-05/0.3627, allocations: 99.25 kB / 408 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3627, allocations: 0 / 408 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003257/0.363, allocations: 27.95 kB / 408 MB, free: 492 kB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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.0009043/0.3639, allocations: 0.9234 MB / 408.9 MB, free: 15.53 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000365/0.3643, allocations: 119.8 kB / 409.1 MB, free: 15.41 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3643, allocations: 0 / 409.1 MB, free: 15.41 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001038/0.3644, allocations: 32.91 kB / 409.1 MB, free: 15.38 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004842/0.3649, allocations: 55.94 kB / 409.2 MB, free: 15.32 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002589/0.3675, allocations: 2.06 MB / 411.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003448/0.3679, allocations: 0.72 MB / 411.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.304e-05/0.368, allocations: 9.094 kB / 411.9 MB, free: 12.33 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.34e-05/0.368, allocations: 35.42 kB / 412 MB, free: 12.3 MB / 334.1 MB Notification: Performance of SimCode: time 4.31e-07/0.368, allocations: 0 / 412 MB, free: 12.3 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02529/0.3933, allocations: 2.791 MB / 414.8 MB, free: 9.652 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.584/8.978, allocations: 22.7 kB / 414.8 MB, free: 9.637 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches