Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.001424/0.001424, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001434/0.001434, allocations: 209.8 kB / 23.73 MB, free: 4.523 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.389/1.389, allocations: 230.6 MB / 257.5 MB, free: 7.785 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.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00146/0.00146, allocations: 51.92 kB / 377.7 MB, free: 2.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2578/0.2592, allocations: 53.37 MB / 431.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003211/0.2624, allocations: 1.985 MB / 433 MB, free: 4.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00089/0.2633, allocations: 0.4986 MB / 433.5 MB, free: 4.156 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.815e-05/0.2634, allocations: 4 kB / 433.5 MB, free: 4.152 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001013/0.2635, allocations: 19.8 kB / 433.6 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.448e-05/0.2636, allocations: 27.72 kB / 433.6 MB, free: 4.105 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002842/0.2639, allocations: 67.84 kB / 433.7 MB, free: 4.039 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001659/0.264, allocations: 111.6 kB / 433.8 MB, free: 3.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001363/0.2642, allocations: 41.61 kB / 433.8 MB, free: 3.883 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.83e-05/0.2643, allocations: 59.78 kB / 433.9 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.482e-05/0.2643, allocations: 51.77 kB / 433.9 MB, free: 3.773 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.168e-05/0.2644, allocations: 8 kB / 433.9 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.058e-05/0.2644, allocations: 12 kB / 433.9 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.438e-05/0.2644, allocations: 27.92 kB / 434 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.343e-05/0.2645, allocations: 51.72 kB / 434 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001903/0.2647, allocations: 125.1 kB / 434.1 MB, free: 3.555 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.2647, allocations: 4 kB / 434.1 MB, free: 3.551 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2647, allocations: 0 / 434.1 MB, free: 3.551 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.479e-06/0.2647, allocations: 0 / 434.1 MB, free: 3.551 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0005551/0.2652, allocations: 353.8 kB / 434.5 MB, free: 3.176 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.2653, allocations: 8.031 kB / 434.5 MB, free: 3.168 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.348e-05/0.2653, allocations: 46.73 kB / 434.5 MB, free: 3.113 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.622e-05/0.2654, allocations: 16.84 kB / 434.6 MB, free: 3.098 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002402/0.2656, allocations: 152.5 kB / 434.7 MB, free: 2.926 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.463e-05/0.2656, allocations: 4.375 kB / 434.7 MB, free: 2.922 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.461e-05/0.2656, allocations: 20.33 kB / 434.7 MB, free: 2.902 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004782/0.2661, allocations: 239.5 kB / 435 MB, free: 2.645 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.458e-05/0.2661, allocations: 4 kB / 435 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.473e-05/0.2662, allocations: 4 kB / 435 MB, free: 2.637 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.2662, allocations: 0 / 435 MB, free: 2.637 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000242/0.2664, allocations: 91.81 kB / 435.1 MB, free: 2.547 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006219/0.267, allocations: 0.5154 MB / 435.6 MB, free: 1.973 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002726/0.2673, allocations: 147.8 kB / 435.7 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001656/0.2675, allocations: 66.64 kB / 435.8 MB, free: 1.727 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.034e-05/0.2675, allocations: 4 kB / 435.8 MB, free: 1.723 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.49e-05/0.2675, allocations: 46.48 kB / 435.8 MB, free: 1.668 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.253e-06/0.2675, allocations: 0 / 435.8 MB, free: 1.668 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005024/0.268, allocations: 177.4 kB / 436 MB, free: 1.488 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.969e-05/0.2681, allocations: 110.8 kB / 436.1 MB, free: 1.355 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001136/0.2682, allocations: 136.9 kB / 436.3 MB, free: 1.211 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.184e-05/0.2682, allocations: 25.7 kB / 436.3 MB, free: 1.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.35e-05/0.2683, allocations: 119.7 kB / 436.4 MB, free: 1.059 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.318e-05/0.2683, allocations: 19.86 kB / 436.4 MB, free: 1.039 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.392e-05/0.2684, allocations: 33.7 kB / 436.4 MB, free: 1 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.2685, allocations: 322.8 kB / 436.8 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001113/0.2686, allocations: 35.97 kB / 436.8 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001734/0.2688, allocations: 138.9 kB / 436.9 MB, free: 472 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002872/0.2691, allocations: 180.6 kB / 437.1 MB, free: 244 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.2691, allocations: 0 / 437.1 MB, free: 244 kB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003721/0.2695, allocations: 189.3 kB / 437.3 MB, free: 48 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.2695, allocations: 8 kB / 437.3 MB, free: 40 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.2695, allocations: 3.938 kB / 437.3 MB, free: 36 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.764e-05/0.2695, allocations: 8 kB / 437.3 MB, free: 28 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001911/0.2697, allocations: 47.91 kB / 437.4 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/0.2697, allocations: 4 kB / 437.4 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001009/0.2698, allocations: 20.55 kB / 437.4 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.455e-05/0.2698, allocations: 16.38 kB / 437.4 MB, free: 15.94 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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.0001084/0.2699, allocations: 129.7 kB / 437.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001461/0.2701, allocations: 85.52 kB / 437.6 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.696e-05/0.2701, allocations: 20.64 kB / 437.6 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.2701, allocations: 4 kB / 437.6 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.2701, allocations: 0 / 437.6 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.648e-06/0.2701, allocations: 4 kB / 437.6 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002517/0.2704, allocations: 168.7 kB / 437.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.2704, allocations: 0 / 437.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000171/0.2706, allocations: 35.97 kB / 437.8 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.881e-06/0.2706, allocations: 4 kB / 437.8 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.512e-05/0.2706, allocations: 7.938 kB / 437.9 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.691e-06/0.2706, allocations: 11.88 kB / 437.9 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.2706, allocations: 0 / 437.9 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005239/0.2711, allocations: 363.6 kB / 438.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.429e-05/0.2711, allocations: 19.86 kB / 438.2 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.442e-05/0.2712, allocations: 7.938 kB / 438.2 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001322/0.2713, allocations: 12.06 kB / 438.3 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.26e-05/0.2713, allocations: 3.984 kB / 438.3 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.608e-06/0.2713, allocations: 4 kB / 438.3 MB, free: 15 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.192e-05/0.2714, allocations: 102.2 kB / 438.4 MB, free: 14.9 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2714, allocations: 3.938 kB / 438.4 MB, free: 14.89 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003086/0.2717, allocations: 24 kB / 438.4 MB, free: 14.87 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 (14): * Single equations (assignments): 14 * 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.0008147/0.2725, allocations: 0.9183 MB / 439.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003058/0.2728, allocations: 107.9 kB / 439.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.2728, allocations: 0 / 439.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001019/0.2729, allocations: 32.78 kB / 439.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004871/0.2734, allocations: 56.36 kB / 439.5 MB, free: 13.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002406/0.2758, allocations: 2.029 MB / 441.5 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001131/0.2759, allocations: 105.5 kB / 441.6 MB, free: 11.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.996e-05/0.276, allocations: 16.64 kB / 441.6 MB, free: 11.4 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.203e-05/0.2761, allocations: 31.42 kB / 441.7 MB, free: 11.37 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2761, allocations: 0 / 441.7 MB, free: 11.37 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03161/0.3077, allocations: 3.375 MB / 445.1 MB, free: 8.168 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.39/10.7, allocations: 6.562 kB / 445.1 MB, free: 8.164 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.040925790002802]