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.001277/0.001277, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.00166/0.00166, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.509/1.509, allocations: 230.6 MB / 254.1 MB, free: 15.08 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.001711/0.001711, allocations: 51.92 kB / 373 MB, free: 10.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1067, allocations: 53.34 MB / 426.3 MB, free: 4.871 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003428/0.1101, allocations: 2.027 MB / 428.3 MB, free: 2.832 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001044/0.1112, allocations: 0.5375 MB / 428.9 MB, free: 2.289 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001051/0.1113, allocations: 0 / 428.9 MB, free: 2.289 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001238/0.1114, allocations: 19.8 kB / 428.9 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.045e-05/0.1115, allocations: 27.72 kB / 428.9 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002924/0.1118, allocations: 55.88 kB / 429 MB, free: 2.188 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001912/0.112, allocations: 123.6 kB / 429.1 MB, free: 2.066 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001403/0.1121, allocations: 41.36 kB / 429.1 MB, free: 2.023 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.333e-05/0.1122, allocations: 43.86 kB / 429.2 MB, free: 1.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.859e-05/0.1123, allocations: 63.69 kB / 429.2 MB, free: 1.918 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.35e-05/0.1123, allocations: 12 kB / 429.2 MB, free: 1.906 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.116e-05/0.1123, allocations: 12 kB / 429.3 MB, free: 1.895 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.372e-05/0.1124, allocations: 23.92 kB / 429.3 MB, free: 1.871 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.935e-05/0.1124, allocations: 63.61 kB / 429.3 MB, free: 1.809 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000206/0.1126, allocations: 123.4 kB / 429.5 MB, free: 1.688 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1126, allocations: 4 kB / 429.5 MB, free: 1.684 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1126, allocations: 0 / 429.5 MB, free: 1.684 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.317e-06/0.1127, allocations: 0 / 429.5 MB, free: 1.684 MB / 350.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.0006599/0.1133, allocations: 430.9 kB / 429.9 MB, free: 1.215 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.1134, allocations: 8.031 kB / 429.9 MB, free: 1.207 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.982e-05/0.1134, allocations: 42.75 kB / 429.9 MB, free: 1.156 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.876e-05/0.1134, allocations: 16.84 kB / 429.9 MB, free: 1.141 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000281/0.1137, allocations: 204.1 kB / 430.1 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.491e-05/0.1137, allocations: 8.375 kB / 430.2 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.52e-05/0.1138, allocations: 20.33 kB / 430.2 MB, free: 0.875 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004897/0.1143, allocations: 238.7 kB / 430.4 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.1143, allocations: 0 / 430.4 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.352e-05/0.1143, allocations: 8 kB / 430.4 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.1143, allocations: 4 kB / 430.4 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002688/0.1146, allocations: 91.86 kB / 430.5 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1843/0.2989, allocations: 0.5909 MB / 431.1 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003125/0.2992, allocations: 142.1 kB / 431.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001517/0.2993, allocations: 71.97 kB / 431.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.007e-05/0.2994, allocations: 3.984 kB / 431.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.103e-05/0.2994, allocations: 42.19 kB / 431.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 2.284e-06/0.2994, allocations: 0 / 431.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005411/0.2999, allocations: 177.6 kB / 431.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.2e-05/0.3, allocations: 114.9 kB / 431.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.206e-05/0.3001, allocations: 128.4 kB / 431.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.129e-05/0.3001, allocations: 31.02 kB / 431.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.862e-05/0.3001, allocations: 113.9 kB / 431.9 MB, free: 10.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.254e-05/0.3002, allocations: 28.52 kB / 431.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.922e-05/0.3002, allocations: 32 kB / 432 MB, free: 10.31 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.121e-05/0.3003, allocations: 322.1 kB / 432.3 MB, free: 10 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001156/0.3004, allocations: 37.8 kB / 432.3 MB, free: 10 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001472/0.3005, allocations: 134.8 kB / 432.4 MB, free: 9.883 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002527/0.3008, allocations: 174.9 kB / 432.6 MB, free: 9.766 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.3008, allocations: 2.031 kB / 432.6 MB, free: 9.766 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003415/0.3011, allocations: 188.2 kB / 432.8 MB, free: 9.727 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/0.3011, allocations: 12.66 kB / 432.8 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.3011, allocations: 10 kB / 432.8 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.843e-05/0.3012, allocations: 4.031 kB / 432.8 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001746/0.3013, allocations: 45.31 kB / 432.9 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.059e-05/0.3014, allocations: 6.281 kB / 432.9 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001003/0.3015, allocations: 17.25 kB / 432.9 MB, free: 9.723 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.6e-05/0.3015, allocations: 12.09 kB / 432.9 MB, free: 9.723 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 7.127e-05/0.3015, allocations: 128.1 kB / 433 MB, free: 9.609 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001264/0.3017, allocations: 92.34 kB / 433.1 MB, free: 9.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.944e-05/0.3017, allocations: 18.59 kB / 433.1 MB, free: 9.566 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.3017, allocations: 2.625 kB / 433.1 MB, free: 9.566 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.3017, allocations: 0 / 433.1 MB, free: 9.566 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.3017, allocations: 3.562 kB / 433.2 MB, free: 9.566 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002072/0.3019, allocations: 203.5 kB / 433.3 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.3019, allocations: 0.7812 kB / 433.4 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001661/0.3021, allocations: 34.52 kB / 433.4 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.3021, allocations: 13.88 kB / 433.4 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.067e-05/0.3021, allocations: 0 / 433.4 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.3021, allocations: 1.484 kB / 433.4 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.3021, allocations: 5.125 kB / 433.4 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004442/0.3026, allocations: 375.6 kB / 433.8 MB, free: 9.156 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.652e-05/0.3026, allocations: 89.3 kB / 433.9 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.249e-05/0.3026, allocations: 7.75 kB / 433.9 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001291/0.3027, allocations: 8.875 kB / 433.9 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.152e-05/0.3028, allocations: 8.203 kB / 433.9 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.026e-06/0.3028, allocations: 5.656 kB / 433.9 MB, free: 9.055 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.682e-05/0.3028, allocations: 104.2 kB / 434 MB, free: 8.977 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3028, allocations: 1.969 kB / 434 MB, free: 8.977 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003022/0.3031, allocations: 27.02 kB / 434 MB, free: 8.973 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.0005719/0.3037, allocations: 0.907 MB / 434.9 MB, free: 8.223 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003188/0.304, allocations: 111.5 kB / 435 MB, free: 8.223 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.304, allocations: 0 / 435 MB, free: 8.223 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.407e-05/0.3041, allocations: 32.66 kB / 435.1 MB, free: 8.219 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004712/0.3046, allocations: 50.81 kB / 435.1 MB, free: 8.215 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001872/0.3065, allocations: 2.034 MB / 437.1 MB, free: 6.566 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001457/0.3066, allocations: 0.7103 MB / 437.9 MB, free: 5.871 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.309e-05/0.3066, allocations: 13.84 kB / 437.9 MB, free: 5.867 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.395e-05/0.3067, allocations: 39.12 kB / 437.9 MB, free: 5.859 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3067, allocations: 0 / 437.9 MB, free: 5.859 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02835/0.3351, allocations: 2.763 MB / 440.7 MB, free: 5.469 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.244/8.579, allocations: 18.42 kB / 440.7 MB, free: 5.457 MB / 350.1 MB " [Timeout remaining time 651] (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: 11.067612735088915]