Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001748/0.001748, allocations: 118.9 kB / 17.79 MB, free: 5.285 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002141/0.002141, allocations: 214.6 kB / 20.75 MB, free: 2.328 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, allocations: 230.4 MB / 254 MB, free: 15.04 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001834/0.001834, allocations: 71.83 kB / 373 MB, free: 10.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1252, allocations: 53.37 MB / 426.3 MB, free: 4.656 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003757/0.1289, allocations: 2.027 MB / 428.4 MB, free: 2.621 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009843/0.1299, allocations: 0.5336 MB / 428.9 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.717e-05/0.13, allocations: 0 / 428.9 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001295/0.1301, allocations: 23.8 kB / 428.9 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.285e-05/0.1302, allocations: 27.72 kB / 428.9 MB, free: 2.031 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002993/0.1305, allocations: 62.25 kB / 429 MB, free: 1.973 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001899/0.1307, allocations: 123.5 kB / 429.1 MB, free: 1.852 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001466/0.1308, allocations: 33.44 kB / 429.2 MB, free: 1.816 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.888e-05/0.1309, allocations: 51.84 kB / 429.2 MB, free: 1.766 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.703e-05/0.131, allocations: 59.64 kB / 429.3 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.762e-05/0.1311, allocations: 8 kB / 429.3 MB, free: 1.699 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.476e-05/0.1311, allocations: 12 kB / 429.3 MB, free: 1.688 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.307e-05/0.1311, allocations: 23.92 kB / 429.3 MB, free: 1.664 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.091e-05/0.1312, allocations: 67.66 kB / 429.4 MB, free: 1.598 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002284/0.1314, allocations: 123.4 kB / 429.5 MB, free: 1.477 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.1314, allocations: 4 kB / 429.5 MB, free: 1.473 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1314, allocations: 0 / 429.5 MB, free: 1.473 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.1314, allocations: 0 / 429.5 MB, free: 1.473 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.0006549/0.1321, allocations: 426.9 kB / 429.9 MB, free: 1.008 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.1321, allocations: 8.031 kB / 429.9 MB, free: 1 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.294e-05/0.1322, allocations: 46.73 kB / 430 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.16e-05/0.1322, allocations: 20.84 kB / 430 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002674/0.1325, allocations: 204.1 kB / 430.2 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.506e-05/0.1325, allocations: 16.36 kB / 430.2 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.838e-05/0.1326, allocations: 16.33 kB / 430.2 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005008/0.1331, allocations: 234.7 kB / 430.5 MB, free: 412 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.594e-05/0.1331, allocations: 4 kB / 430.5 MB, free: 408 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.345e-05/0.1331, allocations: 0 / 430.5 MB, free: 408 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.296e-06/0.1331, allocations: 4 kB / 430.5 MB, free: 404 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002619/0.1334, allocations: 83.88 kB / 430.5 MB, free: 320 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007247/0.1341, allocations: 0.596 MB / 431.1 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003089/0.1344, allocations: 143.9 kB / 431.3 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001618/0.1345, allocations: 66.64 kB / 431.3 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.308e-05/0.1346, allocations: 4 kB / 431.4 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.476e-05/0.1346, allocations: 46.48 kB / 431.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of pre-optimization done (n=14): time 1.242e-06/0.1346, allocations: 0 / 431.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005553/0.1352, allocations: 189.3 kB / 431.6 MB, free: 15.15 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.562e-05/0.1352, allocations: 107.2 kB / 431.7 MB, free: 15.02 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001204/0.1354, allocations: 126.1 kB / 431.8 MB, free: 14.89 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.056e-05/0.1354, allocations: 37.77 kB / 431.8 MB, free: 14.84 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.812e-05/0.1355, allocations: 115.8 kB / 432 MB, free: 14.73 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.334e-05/0.1355, allocations: 31.78 kB / 432 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.615e-05/0.1356, allocations: 29.72 kB / 432 MB, free: 14.66 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.1357, allocations: 318.8 kB / 432.3 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001196/0.1358, allocations: 35.97 kB / 432.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001884/0.136, allocations: 132.8 kB / 432.5 MB, free: 14.13 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003179/0.1363, allocations: 180.7 kB / 432.7 MB, free: 13.91 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.1363, allocations: 0 / 432.7 MB, free: 13.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003869/0.1367, allocations: 189.2 kB / 432.9 MB, free: 13.71 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.1367, allocations: 4 kB / 432.9 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.37e-05/0.1368, allocations: 7.938 kB / 432.9 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/0.1368, allocations: 4 kB / 432.9 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001883/0.137, allocations: 56.34 kB / 432.9 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.368e-06/0.137, allocations: 4 kB / 432.9 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.975e-05/0.1371, allocations: 19.88 kB / 432.9 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.08e-05/0.1371, allocations: 16 kB / 433 MB, free: 13.61 MB / 366.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.0001133/0.1372, allocations: 129.7 kB / 433.1 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001573/0.1374, allocations: 85.58 kB / 433.2 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.749e-05/0.1374, allocations: 12.66 kB / 433.2 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.1374, allocations: 4 kB / 433.2 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.1374, allocations: 4 kB / 433.2 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/0.1374, allocations: 3.984 kB / 433.2 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002893/0.1377, allocations: 205.6 kB / 433.4 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.1377, allocations: 4 kB / 433.4 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001697/0.1379, allocations: 31.97 kB / 433.4 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.1379, allocations: 0 / 433.4 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.354e-05/0.1379, allocations: 7.938 kB / 433.4 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.1379, allocations: 7.922 kB / 433.5 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.1379, allocations: 4 kB / 433.5 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005676/0.1385, allocations: 373.1 kB / 433.8 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.654e-05/0.1385, allocations: 92.98 kB / 433.9 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.433e-05/0.1386, allocations: 7.938 kB / 433.9 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001299/0.1387, allocations: 11.94 kB / 433.9 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.871e-05/0.1387, allocations: 8.141 kB / 433.9 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.416e-06/0.1388, allocations: 7.938 kB / 433.9 MB, free: 12.52 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.948e-05/0.1388, allocations: 103.2 kB / 434 MB, free: 12.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1388, allocations: 0 / 434 MB, free: 12.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003041/0.1391, allocations: 24 kB / 434.1 MB, free: 12.39 MB / 366.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.0008591/0.14, allocations: 0.9141 MB / 435 MB, free: 11.45 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003304/0.1403, allocations: 112.7 kB / 435.1 MB, free: 11.34 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1403, allocations: 0 / 435.1 MB, free: 11.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001027/0.1404, allocations: 31.91 kB / 435.1 MB, free: 11.31 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004854/0.1409, allocations: 53.81 kB / 435.2 MB, free: 11.26 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00248/0.1434, allocations: 2.016 MB / 437.2 MB, free: 9.066 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003846/0.1438, allocations: 0.7162 MB / 437.9 MB, free: 8.324 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.054e-05/0.1438, allocations: 8.641 kB / 437.9 MB, free: 8.316 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.823e-05/0.1439, allocations: 39.42 kB / 438 MB, free: 8.277 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1439, allocations: 3.938 kB / 438 MB, free: 8.273 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02823/0.1721, allocations: 2.774 MB / 440.7 MB, free: 5.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.179/8.351, allocations: 11.84 kB / 440.7 MB, free: 5.668 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000989903 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv","/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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable PI.x in file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv. Warning: Get data of variable PI.x from file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv failed! Error: Could not read variable PI.y in file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv. Warning: Get data of variable PI.y from file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:time,load.phi,load.w [Calling sys.exit(0), Time elapsed: 11.14475931902416]