Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.001452/0.001452, allocations: 107.9 kB / 18.48 MB, free: 4.543 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.001342/0.001342, allocations: 198.6 kB / 21.43 MB, free: 1.609 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.433/1.433, allocations: 225.6 MB / 249.8 MB, free: 3.609 MB / 190.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.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 43.92 kB / 366.3 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1113, allocations: 52.15 MB / 418.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003791/0.1151, allocations: 2.001 MB / 420.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009577/0.1161, allocations: 0.5297 MB / 421 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001021/0.1162, allocations: 4 kB / 421 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001353/0.1163, allocations: 15.8 kB / 421 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001499/0.1164, allocations: 31.72 kB / 421.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002387/0.1167, allocations: 59.88 kB / 421.1 MB, free: 9.961 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001927/0.1169, allocations: 123.5 kB / 421.2 MB, free: 9.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001499/0.117, allocations: 49.42 kB / 421.3 MB, free: 9.789 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.002e-05/0.1171, allocations: 51.78 kB / 421.3 MB, free: 9.738 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001033/0.1172, allocations: 55.7 kB / 421.4 MB, free: 9.684 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.615e-05/0.1172, allocations: 12 kB / 421.4 MB, free: 9.672 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.991e-05/0.1173, allocations: 12 kB / 421.4 MB, free: 9.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.39e-05/0.1173, allocations: 27.91 kB / 421.4 MB, free: 9.633 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.8e-05/0.1174, allocations: 55.67 kB / 421.5 MB, free: 9.578 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002041/0.1176, allocations: 123.5 kB / 421.6 MB, free: 9.457 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.1176, allocations: 0 / 421.6 MB, free: 9.457 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1176, allocations: 0 / 421.6 MB, free: 9.457 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.53e-06/0.1176, allocations: 4 kB / 421.6 MB, free: 9.453 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0007029/0.1183, allocations: 442.8 kB / 422.1 MB, free: 8.973 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.1183, allocations: 8.031 kB / 422.1 MB, free: 8.965 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.688e-05/0.1183, allocations: 8.125 kB / 422.1 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.507e-05/0.1184, allocations: 46.73 kB / 422.1 MB, free: 8.902 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.943e-05/0.1184, allocations: 16.84 kB / 422.1 MB, free: 8.887 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002859/0.1187, allocations: 208.2 kB / 422.3 MB, free: 8.645 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.751e-05/0.1187, allocations: 12.38 kB / 422.3 MB, free: 8.633 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.441e-05/0.1188, allocations: 12.38 kB / 422.4 MB, free: 8.621 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005193/0.1193, allocations: 259 kB / 422.6 MB, free: 8.344 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.1193, allocations: 4 kB / 422.6 MB, free: 8.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.617e-05/0.1193, allocations: 4 kB / 422.6 MB, free: 8.336 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.1193, allocations: 4 kB / 422.6 MB, free: 8.332 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002696/0.1196, allocations: 94.25 kB / 422.7 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006767/0.1203, allocations: 0.5882 MB / 423.3 MB, free: 7.582 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003532/0.1206, allocations: 135.7 kB / 423.4 MB, free: 7.422 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001812/0.1208, allocations: 82.77 kB / 423.5 MB, free: 7.332 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.081e-05/0.1208, allocations: 3.984 kB / 423.5 MB, free: 7.328 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.371e-05/0.1209, allocations: 42.55 kB / 423.6 MB, free: 7.277 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.503e-06/0.1209, allocations: 0 / 423.6 MB, free: 7.277 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005707/0.1214, allocations: 189.3 kB / 423.7 MB, free: 7.086 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.8e-05/0.1215, allocations: 111 kB / 423.9 MB, free: 6.953 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001356/0.1217, allocations: 130 kB / 424 MB, free: 6.812 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.358e-05/0.1217, allocations: 29.7 kB / 424 MB, free: 6.777 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001067/0.1218, allocations: 115.9 kB / 424.1 MB, free: 6.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.927e-05/0.1218, allocations: 23.84 kB / 424.1 MB, free: 6.637 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.115e-05/0.1219, allocations: 33.84 kB / 424.2 MB, free: 6.598 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.1221, allocations: 322.8 kB / 424.5 MB, free: 6.273 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001179/0.1222, allocations: 35.97 kB / 424.5 MB, free: 6.238 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002128/0.1224, allocations: 145.6 kB / 424.7 MB, free: 6.047 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003294/0.1227, allocations: 185.5 kB / 424.9 MB, free: 5.816 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.1227, allocations: 384 / 424.9 MB, free: 5.816 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004102/0.1231, allocations: 201.2 kB / 425 MB, free: 5.613 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.194e-05/0.1232, allocations: 8 kB / 425.1 MB, free: 5.605 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.1232, allocations: 4 kB / 425.1 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.999e-05/0.1232, allocations: 7.938 kB / 425.1 MB, free: 5.594 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001598/0.1233, allocations: 43.92 kB / 425.1 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.549e-05/0.1234, allocations: 11.97 kB / 425.1 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001069/0.1235, allocations: 20.42 kB / 425.1 MB, free: 5.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.583e-05/0.1235, allocations: 8 kB / 425.2 MB, free: 5.512 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.0001369/0.1236, allocations: 141.6 kB / 425.3 MB, free: 5.363 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000165/0.1238, allocations: 89.53 kB / 425.4 MB, free: 5.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.227e-05/0.1239, allocations: 12.72 kB / 425.4 MB, free: 5.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.1239, allocations: 4 kB / 425.4 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/0.1239, allocations: 0 / 425.4 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.1239, allocations: 0 / 425.4 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003138/0.1242, allocations: 209.5 kB / 425.6 MB, free: 4.992 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1242, allocations: 4 kB / 425.6 MB, free: 4.988 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001851/0.1244, allocations: 39.91 kB / 425.6 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.726e-06/0.1244, allocations: 0 / 425.6 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.791e-05/0.1244, allocations: 11.94 kB / 425.7 MB, free: 4.938 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.1244, allocations: 0 / 425.7 MB, free: 4.938 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.1244, allocations: 0 / 425.7 MB, free: 4.938 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006069/0.125, allocations: 388.2 kB / 426 MB, free: 4.543 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.88e-05/0.1251, allocations: 89.27 kB / 426.1 MB, free: 4.438 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.616e-05/0.1251, allocations: 8 kB / 426.1 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001361/0.1252, allocations: 11.98 kB / 426.1 MB, free: 4.418 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.802e-05/0.1253, allocations: 11.92 kB / 426.2 MB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.867e-06/0.1253, allocations: 4 kB / 426.2 MB, free: 4.402 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.873e-05/0.1254, allocations: 107.3 kB / 426.3 MB, free: 4.297 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1254, allocations: 0 / 426.3 MB, free: 4.297 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003203/0.1257, allocations: 27.95 kB / 426.3 MB, free: 4.27 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.0009391/0.1266, allocations: 0.9155 MB / 427.2 MB, free: 3.324 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003305/0.127, allocations: 116.6 kB / 427.3 MB, free: 3.211 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.127, allocations: 96 / 427.3 MB, free: 3.211 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.871e-05/0.1271, allocations: 35.97 kB / 427.4 MB, free: 3.176 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004683/0.1275, allocations: 55.94 kB / 427.4 MB, free: 3.121 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002667/0.1302, allocations: 2.061 MB / 429.5 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000354/0.1306, allocations: 0.724 MB / 430.2 MB, free: 140 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.439e-05/0.1306, allocations: 5.094 kB / 430.2 MB, free: 136 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.247e-05/0.1307, allocations: 35.42 kB / 430.2 MB, free: 100 kB / 350.1 MB Notification: Performance of SimCode: time 6.72e-07/0.1307, allocations: 0 / 430.2 MB, free: 100 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02145/0.1521, allocations: 2.854 MB / 433.1 MB, free: 13.41 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.186/8.338, allocations: 7.812 kB / 433.1 MB, free: 13.41 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController_fmu --startTime=0 --stopTime=3 --stepSize=0.000593942 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 10.923535478010308]