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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001211/0.001211, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001316/0.001316, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.424/1.424, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001346/0.001346, allocations: 63.89 kB / 307 MB, free: 0.5469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.132, allocations: 50.54 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003779/0.1359, allocations: 2.005 MB / 359.6 MB, free: 12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00117/0.1371, allocations: 0.5338 MB / 360.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001657/0.1373, allocations: 7.938 kB / 360.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000153/0.1374, allocations: 15.8 kB / 360.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001143/0.1376, allocations: 23.8 kB / 360.2 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003889/0.138, allocations: 51.88 kB / 360.2 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002235/0.1382, allocations: 123.6 kB / 360.3 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001977/0.1384, allocations: 57.39 kB / 360.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001113/0.1385, allocations: 51.73 kB / 360.4 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001046/0.1386, allocations: 51.77 kB / 360.5 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.329e-05/0.1387, allocations: 16 kB / 360.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.634e-05/0.1387, allocations: 8 kB / 360.5 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.819e-05/0.1388, allocations: 27.91 kB / 360.5 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.046e-05/0.1389, allocations: 55.67 kB / 360.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002106/0.1391, allocations: 131.8 kB / 360.7 MB, free: 10.85 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.1391, allocations: 0 / 360.7 MB, free: 10.85 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1391, allocations: 0 / 360.7 MB, free: 10.85 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.436e-06/0.1391, allocations: 0 / 360.7 MB, free: 10.85 MB / 302.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.0007433/0.1399, allocations: 427 kB / 361.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/0.1399, allocations: 8.031 kB / 361.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.667e-05/0.14, allocations: 42.75 kB / 361.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.61e-05/0.14, allocations: 12.84 kB / 361.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002324/0.1403, allocations: 212 kB / 361.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.294e-05/0.1403, allocations: 8.375 kB / 361.4 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.428e-05/0.1403, allocations: 12.38 kB / 361.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004874/0.1408, allocations: 246.1 kB / 361.7 MB, free: 9.785 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.429e-05/0.1408, allocations: 3.984 kB / 361.7 MB, free: 9.781 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.66e-05/0.1409, allocations: 8 kB / 361.7 MB, free: 9.773 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.1409, allocations: 0 / 361.7 MB, free: 9.773 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002579/0.1411, allocations: 91.88 kB / 361.8 MB, free: 9.684 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006736/0.1418, allocations: 0.5881 MB / 362.4 MB, free: 9.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002732/0.1421, allocations: 143.9 kB / 362.5 MB, free: 8.852 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000155/0.1423, allocations: 82.58 kB / 362.6 MB, free: 8.762 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.03e-05/0.1423, allocations: 11.92 kB / 362.6 MB, free: 8.75 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.852e-05/0.1424, allocations: 30.56 kB / 362.6 MB, free: 8.711 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.433e-06/0.1424, allocations: 0 / 362.6 MB, free: 8.711 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005152/0.1429, allocations: 185.4 kB / 362.8 MB, free: 8.523 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.229e-05/0.143, allocations: 110.8 kB / 362.9 MB, free: 8.391 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001167/0.1431, allocations: 124.8 kB / 363 MB, free: 8.258 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.066e-05/0.1431, allocations: 37.64 kB / 363.1 MB, free: 8.215 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.134e-05/0.1432, allocations: 108 kB / 363.2 MB, free: 8.105 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.981e-05/0.1432, allocations: 31.62 kB / 363.2 MB, free: 8.074 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.378e-05/0.1433, allocations: 33.72 kB / 363.2 MB, free: 8.035 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001924/0.1435, allocations: 318.8 kB / 363.6 MB, free: 7.715 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001177/0.1436, allocations: 40 kB / 363.6 MB, free: 7.676 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001802/0.1438, allocations: 135.2 kB / 363.7 MB, free: 7.5 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003393/0.1442, allocations: 180.7 kB / 363.9 MB, free: 7.277 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.1442, allocations: 0 / 363.9 MB, free: 7.277 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003842/0.1446, allocations: 185.6 kB / 364.1 MB, free: 7.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.693e-05/0.1446, allocations: 8 kB / 364.1 MB, free: 7.082 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.334e-05/0.1446, allocations: 11.94 kB / 364.1 MB, free: 7.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.1446, allocations: 4 kB / 364.1 MB, free: 7.066 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001821/0.1448, allocations: 47.91 kB / 364.2 MB, free: 7.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.059e-05/0.1448, allocations: 4 kB / 364.2 MB, free: 7.016 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001085/0.145, allocations: 23.83 kB / 364.2 MB, free: 6.992 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.366e-05/0.145, allocations: 8 kB / 364.2 MB, free: 6.984 MB / 302.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.0001325/0.1451, allocations: 141.7 kB / 364.3 MB, free: 6.836 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001449/0.1453, allocations: 81.91 kB / 364.4 MB, free: 6.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.564e-05/0.1453, allocations: 16.66 kB / 364.4 MB, free: 6.734 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.66e-06/0.1453, allocations: 7.984 kB / 364.4 MB, free: 6.727 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.1453, allocations: 96 / 364.4 MB, free: 6.727 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.1453, allocations: 4.172 kB / 364.4 MB, free: 6.723 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002642/0.1456, allocations: 197.6 kB / 364.6 MB, free: 6.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.1456, allocations: 4 kB / 364.6 MB, free: 6.477 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001719/0.1458, allocations: 39.91 kB / 364.7 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.908e-06/0.1458, allocations: 0 / 364.7 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.344e-05/0.1458, allocations: 11.94 kB / 364.7 MB, free: 6.426 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.1459, allocations: 0 / 364.7 MB, free: 6.426 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.1459, allocations: 4 kB / 364.7 MB, free: 6.422 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005271/0.1464, allocations: 363.4 kB / 365 MB, free: 6.047 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.876e-05/0.1465, allocations: 93.05 kB / 365.1 MB, free: 5.938 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.218e-05/0.1465, allocations: 15.88 kB / 365.1 MB, free: 5.922 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001351/0.1466, allocations: 7.984 kB / 365.2 MB, free: 5.914 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.821e-05/0.1467, allocations: 4 kB / 365.2 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.059e-05/0.1467, allocations: 4 kB / 365.2 MB, free: 5.906 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.135e-05/0.1468, allocations: 101.7 kB / 365.3 MB, free: 5.809 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1468, allocations: 0 / 365.3 MB, free: 5.809 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003205/0.1471, allocations: 24 kB / 365.3 MB, free: 5.785 MB / 302.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.0007687/0.1479, allocations: 0.9115 MB / 366.2 MB, free: 4.84 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003296/0.1482, allocations: 131.8 kB / 366.3 MB, free: 4.711 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1482, allocations: 0 / 366.3 MB, free: 4.711 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.49e-05/0.1483, allocations: 23.98 kB / 366.3 MB, free: 4.688 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005675/0.1489, allocations: 56.14 kB / 366.4 MB, free: 4.637 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002217/0.1511, allocations: 2.025 MB / 368.4 MB, free: 2.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002632/0.1514, allocations: 0.7084 MB / 369.1 MB, free: 1.695 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.91e-05/0.1515, allocations: 16.58 kB / 369.2 MB, free: 1.68 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.947e-05/0.1515, allocations: 35.42 kB / 369.2 MB, free: 1.645 MB / 302.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1516, allocations: 0 / 369.2 MB, free: 1.645 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1889/0.3404, allocations: 2.679 MB / 371.9 MB, free: 19.95 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.019/8.36, allocations: 5.219 kB / 371.9 MB, free: 19.95 MB / 302.1 MB (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.002 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv","/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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "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! " Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:time,load.phi,load.w