Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.001648/0.001648, allocations: 103.6 kB / 20.43 MB, free: 1.211 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.001914/0.001914, allocations: 186 kB / 23.71 MB, free: 4.434 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.412/1.412, allocations: 225.7 MB / 252.5 MB, free: 12.81 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.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001597/0.001597, allocations: 55.91 kB / 370.4 MB, free: 9.676 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2789/0.2805, allocations: 52.17 MB / 422.5 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003352/0.2838, allocations: 1.975 MB / 424.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000844/0.2847, allocations: 478.8 kB / 425 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.162e-05/0.2848, allocations: 11.94 kB / 425 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.865e-05/0.2849, allocations: 15.8 kB / 425 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.848e-05/0.2849, allocations: 27.78 kB / 425 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002663/0.2852, allocations: 55.81 kB / 425.1 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001871/0.2854, allocations: 119.6 kB / 425.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001313/0.2855, allocations: 41.59 kB / 425.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.528e-05/0.2856, allocations: 51.8 kB / 425.3 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.123e-05/0.2857, allocations: 47.7 kB / 425.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.38e-05/0.2857, allocations: 12 kB / 425.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.291e-05/0.2857, allocations: 8 kB / 425.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.17e-05/0.2858, allocations: 31.91 kB / 425.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.254e-05/0.2858, allocations: 47.73 kB / 425.5 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001859/0.286, allocations: 129.1 kB / 425.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.286, allocations: 0 / 425.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.286, allocations: 0 / 425.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.11e-06/0.286, allocations: 0 / 425.6 MB, free: 11.34 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.0005827/0.2866, allocations: 357.8 kB / 425.9 MB, free: 10.96 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.557e-05/0.2866, allocations: 8.031 kB / 425.9 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.077e-05/0.2867, allocations: 42.75 kB / 426 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.859e-05/0.2867, allocations: 24.83 kB / 426 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002402/0.287, allocations: 152.4 kB / 426.1 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.488e-05/0.287, allocations: 8.375 kB / 426.2 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.147e-05/0.287, allocations: 20.38 kB / 426.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004691/0.2875, allocations: 234.7 kB / 426.4 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.2875, allocations: 7.953 kB / 426.4 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.194e-05/0.2875, allocations: 0 / 426.4 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.906e-06/0.2875, allocations: 4 kB / 426.4 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002496/0.2878, allocations: 83.88 kB / 426.5 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006463/0.2884, allocations: 0.5154 MB / 427 MB, free: 9.762 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002857/0.2887, allocations: 143.9 kB / 427.2 MB, free: 9.594 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000152/0.2889, allocations: 70.64 kB / 427.2 MB, free: 9.516 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.775e-05/0.2889, allocations: 4 kB / 427.2 MB, free: 9.512 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.998e-05/0.2889, allocations: 34.56 kB / 427.3 MB, free: 9.469 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.172e-06/0.2889, allocations: 0 / 427.3 MB, free: 9.469 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005035/0.2894, allocations: 181.3 kB / 427.4 MB, free: 9.285 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/0.2895, allocations: 118.7 kB / 427.6 MB, free: 9.145 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001169/0.2896, allocations: 138.2 kB / 427.7 MB, free: 8.996 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.896e-05/0.2897, allocations: 29.7 kB / 427.7 MB, free: 8.961 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.87e-05/0.2897, allocations: 115.9 kB / 427.8 MB, free: 8.844 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.553e-05/0.2898, allocations: 19.86 kB / 427.9 MB, free: 8.824 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.376e-05/0.2898, allocations: 37.7 kB / 427.9 MB, free: 8.781 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.29, allocations: 322.8 kB / 428.2 MB, free: 8.457 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001128/0.2901, allocations: 35.97 kB / 428.2 MB, free: 8.422 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001762/0.2903, allocations: 124 kB / 428.4 MB, free: 8.258 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000302/0.2906, allocations: 188.6 kB / 428.5 MB, free: 8.027 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.2906, allocations: 4 kB / 428.5 MB, free: 8.023 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003699/0.2909, allocations: 189.6 kB / 428.7 MB, free: 7.832 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.291, allocations: 4 kB / 428.7 MB, free: 7.828 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.291, allocations: 11.92 kB / 428.7 MB, free: 7.816 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.838e-05/0.291, allocations: 4 kB / 428.8 MB, free: 7.812 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001783/0.2912, allocations: 47.91 kB / 428.8 MB, free: 7.766 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.286e-05/0.2912, allocations: 8 kB / 428.8 MB, free: 7.758 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.674e-05/0.2913, allocations: 15.89 kB / 428.8 MB, free: 7.742 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.589e-05/0.2913, allocations: 12 kB / 428.8 MB, free: 7.73 MB / 334.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.0001115/0.2914, allocations: 133.7 kB / 429 MB, free: 7.59 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000149/0.2915, allocations: 89.95 kB / 429.1 MB, free: 7.496 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.486e-05/0.2916, allocations: 16.66 kB / 429.1 MB, free: 7.477 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.2916, allocations: 4 kB / 429.1 MB, free: 7.473 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.2916, allocations: 0 / 429.1 MB, free: 7.473 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.2916, allocations: 0 / 429.1 MB, free: 7.473 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002816/0.2919, allocations: 160.7 kB / 429.2 MB, free: 7.273 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.2919, allocations: 4 kB / 429.2 MB, free: 7.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001622/0.292, allocations: 31.97 kB / 429.3 MB, free: 7.238 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.2921, allocations: 0 / 429.3 MB, free: 7.238 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.527e-05/0.2921, allocations: 11.94 kB / 429.3 MB, free: 7.227 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.2921, allocations: 4 kB / 429.3 MB, free: 7.223 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.2921, allocations: 4 kB / 429.3 MB, free: 7.219 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005454/0.2926, allocations: 375.5 kB / 429.7 MB, free: 6.832 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.068e-05/0.2926, allocations: 11.89 kB / 429.7 MB, free: 6.82 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.418e-05/0.2927, allocations: 12.16 kB / 429.7 MB, free: 6.809 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001242/0.2928, allocations: 4 kB / 429.7 MB, free: 6.805 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.825e-05/0.2928, allocations: 7.984 kB / 429.7 MB, free: 6.797 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.115e-05/0.2928, allocations: 15.92 kB / 429.7 MB, free: 6.781 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.416e-05/0.2929, allocations: 102.6 kB / 429.8 MB, free: 6.684 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2929, allocations: 0 / 429.8 MB, free: 6.684 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000307/0.2932, allocations: 27.95 kB / 429.8 MB, free: 6.656 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 (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.0008415/0.2941, allocations: 0.9036 MB / 430.7 MB, free: 5.727 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003269/0.2944, allocations: 119.9 kB / 430.9 MB, free: 5.609 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.2944, allocations: 0 / 430.9 MB, free: 5.609 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.811e-05/0.2945, allocations: 35.91 kB / 430.9 MB, free: 5.574 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004759/0.295, allocations: 44 kB / 430.9 MB, free: 5.531 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002395/0.2973, allocations: 2.041 MB / 433 MB, free: 3.324 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.357e-05/0.2974, allocations: 97.61 kB / 433.1 MB, free: 3.211 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.108e-05/0.2975, allocations: 8.641 kB / 433.1 MB, free: 3.203 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.799e-05/0.2976, allocations: 35.42 kB / 433.1 MB, free: 3.168 MB / 334.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2976, allocations: 4 kB / 433.1 MB, free: 3.164 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02988/0.3274, allocations: 3.3 MB / 436.4 MB, free: 36 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.48/10.81, allocations: 10.38 kB / 436.4 MB, free: 28 kB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.192755402997136]