Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001731/0.001731, allocations: 105.1 kB / 21.21 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001553/0.001553, allocations: 212.6 kB / 24.51 MB, free: 3.938 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.362/1.362, allocations: 230.6 MB / 258.3 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001503, allocations: 47.92 kB / 378.5 MB, free: 2.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2482/0.2497, allocations: 53.36 MB / 431.8 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003395/0.2531, allocations: 1.977 MB / 433.8 MB, free: 4.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009578/0.2541, allocations: 0.5337 MB / 434.4 MB, free: 4.121 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.525e-05/0.2542, allocations: 7.938 kB / 434.4 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001/0.2543, allocations: 15.8 kB / 434.4 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001363/0.2544, allocations: 27.8 kB / 434.4 MB, free: 4.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002279/0.2546, allocations: 51.86 kB / 434.5 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001701/0.2548, allocations: 127.5 kB / 434.6 MB, free: 3.895 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001365/0.2549, allocations: 47.67 kB / 434.6 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.097e-05/0.255, allocations: 55.78 kB / 434.7 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.713e-05/0.2551, allocations: 59.7 kB / 434.7 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.294e-05/0.2551, allocations: 12 kB / 434.7 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.114e-05/0.2551, allocations: 12 kB / 434.8 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.58e-05/0.2552, allocations: 23.92 kB / 434.8 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.078e-05/0.2552, allocations: 47.78 kB / 434.8 MB, free: 3.637 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001983/0.2554, allocations: 131.3 kB / 435 MB, free: 3.508 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.2554, allocations: 0 / 435 MB, free: 3.508 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2554, allocations: 0 / 435 MB, free: 3.508 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.2554, allocations: 0 / 435 MB, free: 3.508 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.0005885/0.256, allocations: 361.8 kB / 435.3 MB, free: 3.125 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.2561, allocations: 8.031 kB / 435.3 MB, free: 3.117 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.338e-05/0.2561, allocations: 8.188 kB / 435.3 MB, free: 3.109 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.436e-05/0.2561, allocations: 46.73 kB / 435.4 MB, free: 3.055 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.675e-05/0.2562, allocations: 16.84 kB / 435.4 MB, free: 3.039 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002367/0.2564, allocations: 156.7 kB / 435.5 MB, free: 2.863 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.218e-05/0.2564, allocations: 12.38 kB / 435.6 MB, free: 2.852 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.912e-05/0.2564, allocations: 12.38 kB / 435.6 MB, free: 2.84 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005046/0.2569, allocations: 250.5 kB / 435.8 MB, free: 2.57 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/0.257, allocations: 0 / 435.8 MB, free: 2.57 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.756e-05/0.257, allocations: 8 kB / 435.8 MB, free: 2.562 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.257, allocations: 0 / 435.8 MB, free: 2.562 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002404/0.2572, allocations: 87.88 kB / 435.9 MB, free: 2.477 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006127/0.2578, allocations: 0.5115 MB / 436.4 MB, free: 1.906 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003492/0.2582, allocations: 147.8 kB / 436.6 MB, free: 1.734 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001539/0.2583, allocations: 74.62 kB / 436.6 MB, free: 1.652 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.268e-05/0.2584, allocations: 3.984 kB / 436.6 MB, free: 1.648 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.284e-05/0.2584, allocations: 34.56 kB / 436.7 MB, free: 1.605 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.363e-06/0.2584, allocations: 0 / 436.7 MB, free: 1.605 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005128/0.2589, allocations: 185.3 kB / 436.9 MB, free: 1.418 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.075e-05/0.259, allocations: 118.9 kB / 437 MB, free: 1.277 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001071/0.2591, allocations: 136.6 kB / 437.1 MB, free: 1.133 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.975e-05/0.2591, allocations: 29.7 kB / 437.1 MB, free: 1.098 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.339e-05/0.2592, allocations: 111.9 kB / 437.2 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.853e-05/0.2592, allocations: 27.83 kB / 437.3 MB, free: 0.957 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.547e-05/0.2593, allocations: 37.7 kB / 437.3 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.2594, allocations: 322.8 kB / 437.6 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001153/0.2595, allocations: 35.97 kB / 437.7 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001802/0.2597, allocations: 137.7 kB / 437.8 MB, free: 380 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003134/0.26, allocations: 193.4 kB / 438 MB, free: 136 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.26, allocations: 4 kB / 438 MB, free: 132 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000395/0.2604, allocations: 197.2 kB / 438.2 MB, free: 15.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.2604, allocations: 8 kB / 438.2 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.2604, allocations: 4 kB / 438.2 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.2604, allocations: 4 kB / 438.2 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001501/0.2606, allocations: 51.91 kB / 438.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.031e-05/0.2606, allocations: 7.938 kB / 438.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.695e-05/0.2607, allocations: 16.33 kB / 438.3 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.722e-05/0.2607, allocations: 19.98 kB / 438.3 MB, free: 15.82 MB / 350.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.0001038/0.2608, allocations: 134.2 kB / 438.4 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001485/0.261, allocations: 85.64 kB / 438.5 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.669e-05/0.261, allocations: 12.72 kB / 438.5 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.261, allocations: 4 kB / 438.5 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.261, allocations: 0 / 438.5 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.2611, allocations: 3.984 kB / 438.5 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002548/0.2613, allocations: 169.1 kB / 438.7 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.2613, allocations: 0 / 438.7 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001765/0.2615, allocations: 43.91 kB / 438.7 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.2615, allocations: 0 / 438.7 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.439e-05/0.2615, allocations: 4 kB / 438.7 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.2615, allocations: 3.938 kB / 438.7 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.2615, allocations: 0 / 438.7 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005383/0.262, allocations: 383.4 kB / 439.1 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.149e-05/0.2621, allocations: 15.88 kB / 439.1 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.363e-05/0.2621, allocations: 8 kB / 439.1 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000132/0.2622, allocations: 12.05 kB / 439.1 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.232e-05/0.2623, allocations: 8 kB / 439.2 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.108e-05/0.2623, allocations: 7.984 kB / 439.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.383e-05/0.2623, allocations: 98.36 kB / 439.3 MB, free: 14.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2623, allocations: 0 / 439.3 MB, free: 14.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003102/0.2626, allocations: 28 kB / 439.3 MB, free: 14.74 MB / 350.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.0008048/0.2635, allocations: 0.9158 MB / 440.2 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000314/0.2638, allocations: 119.7 kB / 440.3 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.2638, allocations: 0 / 440.3 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.783e-05/0.2639, allocations: 36.78 kB / 440.4 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004893/0.2644, allocations: 58.12 kB / 440.4 MB, free: 13.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002382/0.2667, allocations: 2.054 MB / 442.5 MB, free: 11.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.724e-05/0.2668, allocations: 101.5 kB / 442.6 MB, free: 11.24 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.31e-05/0.2669, allocations: 9.094 kB / 442.6 MB, free: 11.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.708e-05/0.267, allocations: 39.42 kB / 442.6 MB, free: 11.2 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.267, allocations: 0 / 442.6 MB, free: 11.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02479/0.2917, allocations: 3.095 MB / 445.7 MB, free: 8.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.6/10.89, allocations: 0 / 445.7 MB, free: 8.27 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController_fmu --startTime=0 --stopTime=3 --stepSize=0.000593942 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.30334174609743]