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.001782/0.001782, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.001812/0.001812, allocations: 194.3 kB / 23.71 MB, free: 4.406 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.418/1.418, allocations: 225.7 MB / 252.5 MB, free: 12.8 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="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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001523/0.001523, allocations: 51.92 kB / 370.4 MB, free: 9.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2454/0.2469, allocations: 52.17 MB / 422.6 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003276/0.2501, allocations: 1.98 MB / 424.5 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008643/0.251, allocations: 0.491 MB / 425 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.455e-05/0.2511, allocations: 7.938 kB / 425 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001025/0.2512, allocations: 15.8 kB / 425 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001297/0.2513, allocations: 31.77 kB / 425.1 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002302/0.2516, allocations: 63.81 kB / 425.1 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000167/0.2517, allocations: 123.6 kB / 425.3 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001371/0.2519, allocations: 37.61 kB / 425.3 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.302e-05/0.252, allocations: 55.78 kB / 425.3 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.394e-05/0.252, allocations: 43.77 kB / 425.4 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.352e-05/0.2521, allocations: 12 kB / 425.4 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.365e-05/0.2521, allocations: 12 kB / 425.4 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.218e-05/0.2521, allocations: 31.84 kB / 425.4 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.714e-05/0.2522, allocations: 43.8 kB / 425.5 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001869/0.2524, allocations: 129.1 kB / 425.6 MB, free: 11.28 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.2524, allocations: 4 kB / 425.6 MB, free: 11.28 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2524, allocations: 4 kB / 425.6 MB, free: 11.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.526e-06/0.2524, allocations: 0 / 425.6 MB, free: 11.27 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.0005718/0.2529, allocations: 353.8 kB / 426 MB, free: 10.9 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.253, allocations: 12.03 kB / 426 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.523e-05/0.253, allocations: 42.75 kB / 426 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.797e-05/0.2531, allocations: 20.77 kB / 426 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000236/0.2533, allocations: 154.3 kB / 426.2 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.138e-05/0.2533, allocations: 8.375 kB / 426.2 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.249e-05/0.2533, allocations: 16.38 kB / 426.2 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005048/0.2539, allocations: 257 kB / 426.5 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.2539, allocations: 0 / 426.5 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.473e-05/0.2539, allocations: 4 kB / 426.5 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.727e-06/0.2539, allocations: 11.92 kB / 426.5 MB, free: 10.33 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002494/0.2541, allocations: 91.88 kB / 426.6 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006043/0.2547, allocations: 0.5076 MB / 427.1 MB, free: 9.672 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003342/0.2551, allocations: 147.8 kB / 427.2 MB, free: 9.5 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001566/0.2552, allocations: 66.64 kB / 427.3 MB, free: 9.426 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.617e-05/0.2553, allocations: 4 kB / 427.3 MB, free: 9.422 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.098e-05/0.2553, allocations: 46.53 kB / 427.3 MB, free: 9.367 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.372e-06/0.2553, allocations: 0 / 427.3 MB, free: 9.367 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005045/0.2558, allocations: 189.3 kB / 427.5 MB, free: 9.176 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.218e-05/0.2559, allocations: 110.8 kB / 427.6 MB, free: 9.043 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001208/0.256, allocations: 137.8 kB / 427.8 MB, free: 8.898 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.023e-05/0.256, allocations: 25.7 kB / 427.8 MB, free: 8.867 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.857e-05/0.2561, allocations: 115.9 kB / 427.9 MB, free: 8.75 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.879e-05/0.2561, allocations: 27.84 kB / 427.9 MB, free: 8.723 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.499e-05/0.2562, allocations: 29.72 kB / 428 MB, free: 8.688 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.2563, allocations: 327 kB / 428.3 MB, free: 8.359 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001145/0.2564, allocations: 35.97 kB / 428.3 MB, free: 8.324 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001871/0.2566, allocations: 140.6 kB / 428.5 MB, free: 8.141 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003078/0.2569, allocations: 189.5 kB / 428.6 MB, free: 7.906 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.2569, allocations: 3.938 kB / 428.6 MB, free: 7.902 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003743/0.2573, allocations: 197.2 kB / 428.8 MB, free: 7.703 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.2573, allocations: 4 kB / 428.8 MB, free: 7.699 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.2573, allocations: 4.469 kB / 428.8 MB, free: 7.695 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2e-05/0.2574, allocations: 12 kB / 428.9 MB, free: 7.684 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001485/0.2575, allocations: 43.92 kB / 428.9 MB, free: 7.641 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.284e-05/0.2575, allocations: 11.92 kB / 428.9 MB, free: 7.629 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001049/0.2576, allocations: 27.84 kB / 428.9 MB, free: 7.602 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.143e-05/0.2576, allocations: 8 kB / 428.9 MB, free: 7.594 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.0001101/0.2578, allocations: 134 kB / 429.1 MB, free: 7.453 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001502/0.2579, allocations: 89.56 kB / 429.2 MB, free: 7.359 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.961e-05/0.258, allocations: 16.72 kB / 429.2 MB, free: 7.34 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.258, allocations: 4 kB / 429.2 MB, free: 7.336 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.258, allocations: 4 kB / 429.2 MB, free: 7.332 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.258, allocations: 0 / 429.2 MB, free: 7.332 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002579/0.2582, allocations: 172.5 kB / 429.4 MB, free: 7.121 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.2583, allocations: 4 kB / 429.4 MB, free: 7.117 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001717/0.2584, allocations: 35.91 kB / 429.4 MB, free: 7.082 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.468e-06/0.2584, allocations: 4 kB / 429.4 MB, free: 7.078 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.346e-05/0.2584, allocations: 4 kB / 429.4 MB, free: 7.074 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.626e-06/0.2584, allocations: 4 kB / 429.4 MB, free: 7.07 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2584, allocations: 0 / 429.4 MB, free: 7.07 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005259/0.259, allocations: 383.4 kB / 429.8 MB, free: 6.676 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.001e-05/0.259, allocations: 11.92 kB / 429.8 MB, free: 6.664 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.508e-05/0.259, allocations: 4 kB / 429.8 MB, free: 6.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000134/0.2591, allocations: 11.98 kB / 429.8 MB, free: 6.648 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.353e-05/0.2592, allocations: 0 / 429.8 MB, free: 6.648 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.465e-06/0.2592, allocations: 4 kB / 429.8 MB, free: 6.645 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.76e-05/0.2593, allocations: 99.27 kB / 429.9 MB, free: 6.547 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2593, allocations: 0 / 429.9 MB, free: 6.547 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003119/0.2596, allocations: 31.95 kB / 429.9 MB, free: 6.516 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.0008518/0.2604, allocations: 0.9191 MB / 430.9 MB, free: 5.57 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003131/0.2607, allocations: 120.6 kB / 431 MB, free: 5.453 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.2607, allocations: 8.062 kB / 431 MB, free: 5.445 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.38e-05/0.2608, allocations: 27.92 kB / 431 MB, free: 5.418 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004557/0.2613, allocations: 44.38 kB / 431.1 MB, free: 5.375 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00235/0.2636, allocations: 2.065 MB / 433.1 MB, free: 3.133 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.965e-05/0.2637, allocations: 101.6 kB / 433.2 MB, free: 3.016 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.423e-05/0.2638, allocations: 9.078 kB / 433.2 MB, free: 3.008 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.47e-05/0.2638, allocations: 35.42 kB / 433.3 MB, free: 2.973 MB / 334.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2638, allocations: 0 / 433.3 MB, free: 2.973 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02957/0.2934, allocations: 3.362 MB / 436.6 MB, free: 15.76 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.51/10.81, allocations: 11.92 kB / 436.6 MB, free: 15.75 MB / 350.1 MB " [Timeout remaining time 649] (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: 13.169877869077027]