Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.0008134/0.0008134, allocations: 76.36 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008832/0.0008832, allocations: 156.9 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8621/0.8621, allocations: 177 MB / 204.1 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.874e-06/1.874e-06, allocations: 0 / 324.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.934e-05/2.121e-05, allocations: 3.266 kB / 324.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.00363/0.003651, allocations: 2.049 MB / 326.5 MB, free: 13.87 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001031/0.004682, allocations: 0.5064 MB / 327 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001213/0.004803, allocations: 3.938 kB / 327 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001212/0.004925, allocations: 19.8 kB / 327.1 MB, free: 13.33 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.948e-05/0.005014, allocations: 35.72 kB / 327.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003115/0.005326, allocations: 55.8 kB / 327.2 MB, free: 13.24 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000218/0.005544, allocations: 131.5 kB / 327.3 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001666/0.00571, allocations: 37.97 kB / 327.3 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001233/0.005833, allocations: 75.86 kB / 327.4 MB, free: 12.99 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.347e-05/0.005897, allocations: 39.83 kB / 327.4 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.744e-05/0.005924, allocations: 8 kB / 327.4 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.363e-05/0.005938, allocations: 12 kB / 327.5 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.546e-05/0.005963, allocations: 27.91 kB / 327.5 MB, free: 12.91 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.751e-05/0.006001, allocations: 43.91 kB / 327.5 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000159/0.00616, allocations: 135.4 kB / 327.7 MB, free: 12.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.375e-06/0.006162, allocations: 0 / 327.7 MB, free: 12.73 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.006164, allocations: 0 / 327.7 MB, free: 12.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.006169, allocations: 4 kB / 327.7 MB, free: 12.73 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0004368/0.006606, allocations: 357.8 kB / 328 MB, free: 12.35 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.006642, allocations: 11.98 kB / 328 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.746e-05/0.006679, allocations: 46.73 kB / 328.1 MB, free: 12.28 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.924e-05/0.006709, allocations: 16.84 kB / 328.1 MB, free: 12.27 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001995/0.006908, allocations: 153.5 kB / 328.2 MB, free: 12.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.098e-05/0.006919, allocations: 8.375 kB / 328.2 MB, free: 12.08 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.554e-05/0.006945, allocations: 16.33 kB / 328.3 MB, free: 12.07 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003364/0.007281, allocations: 223.1 kB / 328.5 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.007293, allocations: 4.188 kB / 328.5 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.258e-05/0.007306, allocations: 8.125 kB / 328.5 MB, free: 11.81 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.007311, allocations: 8 kB / 328.5 MB, free: 11.8 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001503/0.007462, allocations: 83.88 kB / 328.6 MB, free: 11.72 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004723/0.007934, allocations: 0.5117 MB / 329.1 MB, free: 11.15 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002333/0.008167, allocations: 139.9 kB / 329.2 MB, free: 10.99 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.76e-05/0.008255, allocations: 70.62 kB / 329.3 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.902e-05/0.008274, allocations: 8 kB / 329.3 MB, free: 10.9 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.778e-05/0.008292, allocations: 38.56 kB / 329.3 MB, free: 10.86 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.323e-06/0.008293, allocations: 0 / 329.3 MB, free: 10.86 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003041/0.008597, allocations: 181.3 kB / 329.5 MB, free: 10.67 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.936e-05/0.008657, allocations: 122.7 kB / 329.6 MB, free: 10.53 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.791e-05/0.008734, allocations: 141.1 kB / 329.8 MB, free: 10.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.888e-06/0.008744, allocations: 25.7 kB / 329.8 MB, free: 10.35 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.192e-05/0.008796, allocations: 128.1 kB / 329.9 MB, free: 10.22 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.516e-05/0.008811, allocations: 19.8 kB / 329.9 MB, free: 10.2 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.412e-05/0.008846, allocations: 29.7 kB / 330 MB, free: 10.17 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.276e-05/0.008918, allocations: 318.8 kB / 330.3 MB, free: 9.848 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.684e-05/0.008975, allocations: 27.98 kB / 330.3 MB, free: 9.82 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.766e-05/0.009053, allocations: 83.7 kB / 330.4 MB, free: 9.711 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001358/0.009189, allocations: 118.7 kB / 330.5 MB, free: 9.57 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.009191, allocations: 0 / 330.5 MB, free: 9.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001662/0.009357, allocations: 145.7 kB / 330.7 MB, free: 9.422 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.124e-05/0.009368, allocations: 11.94 kB / 330.7 MB, free: 9.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.009374, allocations: 0 / 330.7 MB, free: 9.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.078e-05/0.009385, allocations: 4 kB / 330.7 MB, free: 9.406 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.994e-05/0.009454, allocations: 31.97 kB / 330.7 MB, free: 9.375 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.153e-06/0.009462, allocations: 7.875 kB / 330.7 MB, free: 9.367 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.57e-05/0.009507, allocations: 15.94 kB / 330.7 MB, free: 9.352 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.245e-06/0.009516, allocations: 7.984 kB / 330.7 MB, free: 9.344 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (12): * Single equations (assignments): 12 * 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 6.869e-05/0.009584, allocations: 125.9 kB / 330.9 MB, free: 9.211 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.634e-05/0.009681, allocations: 89.53 kB / 330.9 MB, free: 9.117 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.758e-05/0.009708, allocations: 16.78 kB / 331 MB, free: 9.105 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.009711, allocations: 4 kB / 331 MB, free: 9.102 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.009717, allocations: 4.406 kB / 331 MB, free: 9.098 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.009721, allocations: 3.984 kB / 331 MB, free: 9.094 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001673/0.009888, allocations: 164.7 kB / 331.1 MB, free: 8.891 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.009889, allocations: 0 / 331.1 MB, free: 8.891 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001146/0.01, allocations: 39.97 kB / 331.2 MB, free: 8.852 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.01001, allocations: 3.938 kB / 331.2 MB, free: 8.848 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.096e-05/0.01002, allocations: 11.94 kB / 331.2 MB, free: 8.836 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.01002, allocations: 4 kB / 331.2 MB, free: 8.832 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.01002, allocations: 3.938 kB / 331.2 MB, free: 8.828 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003268/0.01035, allocations: 379.5 kB / 331.6 MB, free: 8.438 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.502e-05/0.01036, allocations: 11.89 kB / 331.6 MB, free: 8.426 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.466e-05/0.01038, allocations: 4 kB / 331.6 MB, free: 8.422 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.018e-05/0.01045, allocations: 7.984 kB / 331.6 MB, free: 8.414 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.153e-05/0.01048, allocations: 11.94 kB / 331.6 MB, free: 8.402 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.913e-06/0.01049, allocations: 15.98 kB / 331.6 MB, free: 8.387 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.473e-05/0.01053, allocations: 107.2 kB / 331.7 MB, free: 8.281 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01053, allocations: 0 / 331.7 MB, free: 8.281 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002042/0.01073, allocations: 24 kB / 331.7 MB, free: 8.258 MB / 298.7 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.0004712/0.01121, allocations: 0.9148 MB / 332.7 MB, free: 7.312 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00018/0.01139, allocations: 94.73 kB / 332.7 MB, free: 7.223 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.01139, allocations: 0 / 332.7 MB, free: 7.223 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.841e-05/0.01144, allocations: 31.91 kB / 332.8 MB, free: 7.191 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000357/0.01179, allocations: 63.88 kB / 332.8 MB, free: 7.129 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001422/0.01321, allocations: 1.853 MB / 334.7 MB, free: 5.137 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.254e-05/0.01329, allocations: 98.27 kB / 334.8 MB, free: 5.023 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.46e-05/0.01332, allocations: 16.95 kB / 334.8 MB, free: 5.004 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.465e-05/0.01338, allocations: 40.44 kB / 334.8 MB, free: 4.965 MB / 298.7 MB Notification: Performance of SimCode: time 6.52e-07/0.01338, allocations: 0 / 334.8 MB, free: 4.965 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01825/0.03162, allocations: 3.622 MB / 338.5 MB, free: 1.523 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.646/6.678, allocations: 9.875 kB / 338.5 MB, free: 1.52 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_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_ClockedWithDiscretizedContinuousController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.ClockedWithDiscretizedContinuousController_res.csv. Warning: Get data of variable PI.x from file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv failed! Error: Could not read variable PI.y in file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv. Warning: Get data of variable PI.y from file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_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: 8.419508387334645]