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.001777/0.001777, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002088/0.002088, allocations: 211.1 kB / 23.73 MB, free: 4.387 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.478/1.478, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.00157/0.00157, allocations: 51.94 kB / 377.7 MB, free: 3.008 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2269/0.2285, allocations: 53.37 MB / 431.1 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003349/0.2318, allocations: 1.973 MB / 433 MB, free: 4.691 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000982/0.2328, allocations: 0.5141 MB / 433.6 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001056/0.2329, allocations: 8 kB / 433.6 MB, free: 4.164 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.591e-05/0.233, allocations: 15.8 kB / 433.6 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.758e-05/0.2331, allocations: 23.73 kB / 433.6 MB, free: 4.125 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002809/0.2334, allocations: 59.81 kB / 433.7 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001804/0.2335, allocations: 119.6 kB / 433.8 MB, free: 3.949 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001416/0.2337, allocations: 41.61 kB / 433.8 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.376e-05/0.2338, allocations: 47.84 kB / 433.9 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.276e-05/0.2339, allocations: 43.72 kB / 433.9 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.997e-05/0.2339, allocations: 12 kB / 433.9 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.179e-05/0.2339, allocations: 12 kB / 433.9 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.277e-05/0.2339, allocations: 31.91 kB / 434 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.394e-05/0.234, allocations: 51.72 kB / 434 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002/0.2342, allocations: 121.1 kB / 434.1 MB, free: 3.59 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.2342, allocations: 0 / 434.1 MB, free: 3.59 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2342, allocations: 0 / 434.1 MB, free: 3.59 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.313e-06/0.2342, allocations: 4 kB / 434.1 MB, free: 3.586 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.0005853/0.2348, allocations: 349.8 kB / 434.5 MB, free: 3.215 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.2348, allocations: 8.031 kB / 434.5 MB, free: 3.207 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.915e-05/0.2349, allocations: 46.73 kB / 434.5 MB, free: 3.152 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.73e-05/0.2349, allocations: 20.84 kB / 434.6 MB, free: 3.133 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002454/0.2352, allocations: 154.3 kB / 434.7 MB, free: 2.957 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.549e-05/0.2352, allocations: 12.38 kB / 434.7 MB, free: 2.945 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.55e-05/0.2352, allocations: 16.33 kB / 434.7 MB, free: 2.93 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004842/0.2357, allocations: 250.7 kB / 435 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.347e-05/0.2357, allocations: 0 / 435 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.529e-05/0.2357, allocations: 4 kB / 435 MB, free: 2.66 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.2357, allocations: 4 kB / 435 MB, free: 2.656 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002449/0.236, allocations: 83.86 kB / 435.1 MB, free: 2.574 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000627/0.2366, allocations: 0.5155 MB / 435.6 MB, free: 2 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002819/0.2369, allocations: 139.9 kB / 435.7 MB, free: 1.836 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001558/0.2371, allocations: 70.64 kB / 435.8 MB, free: 1.758 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.869e-05/0.2371, allocations: 7.984 kB / 435.8 MB, free: 1.75 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.641e-05/0.2371, allocations: 34.5 kB / 435.8 MB, free: 1.707 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.393e-06/0.2371, allocations: 0 / 435.8 MB, free: 1.707 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005071/0.2376, allocations: 181.4 kB / 436 MB, free: 1.523 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.636e-05/0.2377, allocations: 118.7 kB / 436.1 MB, free: 1.383 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001142/0.2378, allocations: 134.3 kB / 436.3 MB, free: 1.238 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.068e-05/0.2378, allocations: 29.7 kB / 436.3 MB, free: 1.203 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.81e-05/0.2379, allocations: 119.7 kB / 436.4 MB, free: 1.082 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.75e-05/0.2379, allocations: 23.84 kB / 436.4 MB, free: 1.059 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.71e-05/0.238, allocations: 33.72 kB / 436.5 MB, free: 1.02 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.2381, allocations: 322.8 kB / 436.8 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001176/0.2382, allocations: 35.97 kB / 436.8 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001798/0.2384, allocations: 135 kB / 436.9 MB, free: 496 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003188/0.2387, allocations: 180.6 kB / 437.1 MB, free: 268 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.99e-06/0.2388, allocations: 4 kB / 437.1 MB, free: 264 kB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004067/0.2392, allocations: 185.6 kB / 437.3 MB, free: 72 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.2392, allocations: 4 kB / 437.3 MB, free: 68 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.2392, allocations: 7.938 kB / 437.3 MB, free: 60 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.2392, allocations: 4 kB / 437.3 MB, free: 56 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001769/0.2394, allocations: 47.91 kB / 437.4 MB, free: 8 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.347e-06/0.2394, allocations: 4 kB / 437.4 MB, free: 4 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001252/0.2395, allocations: 23.95 kB / 437.4 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.373e-05/0.2395, allocations: 8 kB / 437.4 MB, free: 15.97 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.0001565/0.2397, allocations: 133.8 kB / 437.5 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001458/0.2398, allocations: 85.58 kB / 437.6 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.642e-05/0.2399, allocations: 16.66 kB / 437.6 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.2399, allocations: 4 kB / 437.6 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.2399, allocations: 4.219 kB / 437.6 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.2399, allocations: 0 / 437.6 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002548/0.2401, allocations: 157.2 kB / 437.8 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-06/0.2402, allocations: 7.984 kB / 437.8 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001977/0.2404, allocations: 35.97 kB / 437.8 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.2404, allocations: 4 kB / 437.8 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.392e-05/0.2404, allocations: 3.938 kB / 437.8 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.2404, allocations: 11.94 kB / 437.9 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.722e-06/0.2404, allocations: 7.938 kB / 437.9 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005416/0.2409, allocations: 367.5 kB / 438.2 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.648e-05/0.241, allocations: 19.88 kB / 438.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.16e-05/0.241, allocations: 3.938 kB / 438.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001342/0.2411, allocations: 11.98 kB / 438.3 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.395e-05/0.2411, allocations: 7.938 kB / 438.3 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.919e-06/0.2412, allocations: 8.062 kB / 438.3 MB, free: 15.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.169e-05/0.2412, allocations: 99.27 kB / 438.4 MB, free: 14.92 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2412, allocations: 0 / 438.4 MB, free: 14.92 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003801/0.2416, allocations: 24 kB / 438.4 MB, free: 14.89 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.000896/0.2425, allocations: 0.9115 MB / 439.3 MB, free: 13.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003217/0.2428, allocations: 111.8 kB / 439.4 MB, free: 13.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.2428, allocations: 4 kB / 439.4 MB, free: 13.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.779e-05/0.2429, allocations: 27.92 kB / 439.4 MB, free: 13.81 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004661/0.2434, allocations: 48.94 kB / 439.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002486/0.2459, allocations: 2.039 MB / 441.5 MB, free: 11.56 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.733e-05/0.246, allocations: 97.48 kB / 441.6 MB, free: 11.45 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.774e-05/0.246, allocations: 12.64 kB / 441.6 MB, free: 11.44 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.036e-05/0.2461, allocations: 39.42 kB / 441.7 MB, free: 11.4 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.2461, allocations: 0 / 441.7 MB, free: 11.4 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03591/0.282, allocations: 3.315 MB / 445 MB, free: 8.258 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/10.96, allocations: 7.375 kB / 445 MB, free: 8.254 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.432860021013767]