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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001237/0.001237, allocations: 108.6 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001266/0.001266, allocations: 191.5 kB / 24.51 MB, free: 4.086 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.443/1.443, allocations: 225.6 MB / 253.3 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001556/0.001556, allocations: 43.94 kB / 371.2 MB, free: 9.867 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2925/0.2941, allocations: 52.19 MB / 423.4 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003584/0.2977, allocations: 2.034 MB / 425.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009903/0.2987, allocations: 0.5415 MB / 426 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001026/0.2988, allocations: 0 / 426 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001237/0.2989, allocations: 19.8 kB / 426 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001428/0.299, allocations: 27.72 kB / 426 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000241/0.2993, allocations: 55.88 kB / 426.1 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001838/0.2995, allocations: 119.6 kB / 426.2 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001449/0.2996, allocations: 45.59 kB / 426.2 MB, free: 11.72 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.502e-05/0.2997, allocations: 55.73 kB / 426.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001/0.2998, allocations: 59.75 kB / 426.3 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.493e-05/0.2998, allocations: 8 kB / 426.4 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.148e-05/0.2998, allocations: 12 kB / 426.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.566e-05/0.2999, allocations: 23.92 kB / 426.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.001e-05/0.3, allocations: 59.67 kB / 426.5 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002152/0.3002, allocations: 124.3 kB / 426.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.3002, allocations: 4 kB / 426.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.3002, allocations: 0 / 426.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.672e-06/0.3002, allocations: 0 / 426.6 MB, free: 11.39 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006449/0.3008, allocations: 361.7 kB / 426.9 MB, free: 11 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.3009, allocations: 15.97 kB / 426.9 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.699e-05/0.3009, allocations: 4.188 kB / 426.9 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.772e-05/0.3009, allocations: 50.73 kB / 427 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.158e-05/0.301, allocations: 16.84 kB / 427 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002593/0.3012, allocations: 146.3 kB / 427.2 MB, free: 10.74 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.637e-05/0.3012, allocations: 12.38 kB / 427.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.078e-05/0.3013, allocations: 12.38 kB / 427.2 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005227/0.3018, allocations: 266.3 kB / 427.4 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.3018, allocations: 0 / 427.4 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.947e-05/0.3018, allocations: 8 kB / 427.4 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.3018, allocations: 0 / 427.4 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00026/0.3021, allocations: 87.88 kB / 427.5 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006801/0.3028, allocations: 0.5311 MB / 428.1 MB, free: 9.75 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000362/0.3031, allocations: 143.7 kB / 428.2 MB, free: 9.582 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001599/0.3033, allocations: 74.77 kB / 428.3 MB, free: 9.5 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.483e-05/0.3033, allocations: 4 kB / 428.3 MB, free: 9.496 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.771e-05/0.3034, allocations: 34.56 kB / 428.3 MB, free: 9.453 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.773e-06/0.3034, allocations: 0 / 428.3 MB, free: 9.453 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005402/0.3039, allocations: 197.4 kB / 428.5 MB, free: 9.254 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.184e-05/0.304, allocations: 114.8 kB / 428.6 MB, free: 9.117 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001203/0.3041, allocations: 129.4 kB / 428.7 MB, free: 8.98 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.183e-05/0.3041, allocations: 33.7 kB / 428.8 MB, free: 8.941 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.996e-05/0.3042, allocations: 111.9 kB / 428.9 MB, free: 8.828 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.945e-05/0.3043, allocations: 23.84 kB / 428.9 MB, free: 8.805 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.413e-05/0.3043, allocations: 33.72 kB / 428.9 MB, free: 8.766 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.3045, allocations: 326.9 kB / 429.3 MB, free: 8.438 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001219/0.3046, allocations: 39.91 kB / 429.3 MB, free: 8.398 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001935/0.3048, allocations: 137.1 kB / 429.4 MB, free: 8.219 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003032/0.3051, allocations: 185.5 kB / 429.6 MB, free: 7.988 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.011e-06/0.3051, allocations: 4 kB / 429.6 MB, free: 7.984 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003757/0.3055, allocations: 193.3 kB / 429.8 MB, free: 7.789 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.3055, allocations: 8 kB / 429.8 MB, free: 7.781 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.3055, allocations: 7.984 kB / 429.8 MB, free: 7.773 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.712e-05/0.3055, allocations: 4 kB / 429.8 MB, free: 7.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001532/0.3057, allocations: 47.86 kB / 429.9 MB, free: 7.723 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.899e-06/0.3057, allocations: 4.375 kB / 429.9 MB, free: 7.719 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001097/0.3058, allocations: 24.22 kB / 429.9 MB, free: 7.695 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.32e-05/0.3058, allocations: 12 kB / 429.9 MB, free: 7.684 MB / 334.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.000118/0.3059, allocations: 133.7 kB / 430 MB, free: 7.543 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000154/0.3061, allocations: 97.47 kB / 430.1 MB, free: 7.441 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.582e-05/0.3061, allocations: 20.7 kB / 430.2 MB, free: 7.418 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.3061, allocations: 0 / 430.2 MB, free: 7.418 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.3062, allocations: 0 / 430.2 MB, free: 7.418 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.3062, allocations: 4 kB / 430.2 MB, free: 7.414 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002895/0.3064, allocations: 180.6 kB / 430.3 MB, free: 7.195 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.3064, allocations: 0 / 430.3 MB, free: 7.195 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001837/0.3066, allocations: 43.91 kB / 430.4 MB, free: 7.152 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.3066, allocations: 0 / 430.4 MB, free: 7.152 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.972e-05/0.3067, allocations: 8 kB / 430.4 MB, free: 7.145 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.3067, allocations: 0 / 430.4 MB, free: 7.145 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3067, allocations: 0 / 430.4 MB, free: 7.145 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005768/0.3072, allocations: 390.7 kB / 430.8 MB, free: 6.746 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.593e-05/0.3073, allocations: 11.92 kB / 430.8 MB, free: 6.734 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.553e-05/0.3073, allocations: 8 kB / 430.8 MB, free: 6.727 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001336/0.3074, allocations: 7.984 kB / 430.8 MB, free: 6.719 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.805e-05/0.3075, allocations: 7.938 kB / 430.8 MB, free: 6.711 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.452e-06/0.3075, allocations: 4 kB / 430.8 MB, free: 6.707 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.327e-05/0.3075, allocations: 102.9 kB / 430.9 MB, free: 6.609 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3075, allocations: 8.062 kB / 430.9 MB, free: 6.602 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003348/0.3079, allocations: 27.95 kB / 431 MB, free: 6.574 MB / 334.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.0009825/0.3089, allocations: 0.9082 MB / 431.9 MB, free: 5.637 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003518/0.3092, allocations: 119.8 kB / 432 MB, free: 5.52 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3092, allocations: 0.9375 kB / 432 MB, free: 5.52 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001052/0.3093, allocations: 27.98 kB / 432 MB, free: 5.492 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005089/0.3098, allocations: 56.83 kB / 432.1 MB, free: 5.438 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002761/0.3126, allocations: 2.065 MB / 434.1 MB, free: 3.195 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003911/0.313, allocations: 0.7123 MB / 434.8 MB, free: 2.457 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.19e-05/0.313, allocations: 13.08 kB / 434.9 MB, free: 2.445 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.635e-05/0.3131, allocations: 35.42 kB / 434.9 MB, free: 2.41 MB / 334.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3131, allocations: 3.938 kB / 434.9 MB, free: 2.406 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02629/0.3394, allocations: 3.03 MB / 437.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/11.55, allocations: 4.266 kB / 437.9 MB, free: 15.52 MB / 350.1 MB " [Timeout remaining time 648] (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 --stepSize=0.000593942 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.095434073009528]