Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.001347/0.001347, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001408/0.001408, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.58/1.58, allocations: 230.6 MB / 254.1 MB, free: 15.11 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.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001581/0.001581, allocations: 51.92 kB / 373 MB, free: 10.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1287/0.1303, allocations: 53.33 MB / 426.3 MB, free: 4.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.004287/0.1346, allocations: 2.023 MB / 428.3 MB, free: 2.805 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001203/0.1358, allocations: 0.5726 MB / 428.9 MB, free: 2.227 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001139/0.1359, allocations: 0 / 428.9 MB, free: 2.227 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001369/0.136, allocations: 19.8 kB / 428.9 MB, free: 2.207 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001796/0.1362, allocations: 31.72 kB / 428.9 MB, free: 2.176 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002564/0.1365, allocations: 55.81 kB / 429 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002018/0.1367, allocations: 127.5 kB / 429.1 MB, free: 1.996 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001638/0.1368, allocations: 45.42 kB / 429.2 MB, free: 1.949 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.983e-05/0.1369, allocations: 51.78 kB / 429.2 MB, free: 1.898 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000107/0.137, allocations: 59.7 kB / 429.3 MB, free: 1.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.789e-05/0.1371, allocations: 8 kB / 429.3 MB, free: 1.832 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.465e-05/0.1371, allocations: 12 kB / 429.3 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.717e-05/0.1371, allocations: 27.91 kB / 429.3 MB, free: 1.793 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.092e-05/0.1372, allocations: 59.67 kB / 429.4 MB, free: 1.734 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002995/0.1375, allocations: 123.4 kB / 429.5 MB, free: 1.613 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.536e-06/0.1375, allocations: 4 kB / 429.5 MB, free: 1.609 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.1375, allocations: 0 / 429.5 MB, free: 1.609 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.535e-05/0.1375, allocations: 0 / 429.5 MB, free: 1.609 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.0008186/0.1384, allocations: 442.8 kB / 429.9 MB, free: 1.129 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.904e-05/0.1384, allocations: 8.031 kB / 429.9 MB, free: 1.121 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.548e-05/0.1385, allocations: 46.73 kB / 430 MB, free: 1.066 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.614e-05/0.1385, allocations: 16.84 kB / 430 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003048/0.1388, allocations: 212.1 kB / 430.2 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.834e-05/0.1388, allocations: 8.375 kB / 430.2 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.98e-05/0.1389, allocations: 16.38 kB / 430.2 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005639/0.1394, allocations: 254.9 kB / 430.5 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.568e-05/0.1395, allocations: 4 kB / 430.5 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.746e-05/0.1395, allocations: 8 kB / 430.5 MB, free: 0.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.1395, allocations: 0 / 430.5 MB, free: 0.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002687/0.1398, allocations: 83.88 kB / 430.6 MB, free: 428 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007487/0.1405, allocations: 0.6 MB / 431.2 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003732/0.1409, allocations: 143.7 kB / 431.3 MB, free: 15.58 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001685/0.141, allocations: 70.77 kB / 431.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.059e-05/0.1411, allocations: 8 kB / 431.4 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.516e-05/0.1411, allocations: 30.56 kB / 431.4 MB, free: 15.45 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.533e-06/0.1411, allocations: 0 / 431.4 MB, free: 15.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006079/0.1417, allocations: 189.8 kB / 431.6 MB, free: 15.26 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.263e-05/0.1418, allocations: 119.1 kB / 431.7 MB, free: 15.12 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001227/0.1419, allocations: 134 kB / 431.9 MB, free: 14.98 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.12e-05/0.1419, allocations: 25.7 kB / 431.9 MB, free: 14.95 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.005e-05/0.142, allocations: 111.9 kB / 432 MB, free: 14.83 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.801e-05/0.1421, allocations: 23.84 kB / 432 MB, free: 14.81 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.733e-05/0.1421, allocations: 33.72 kB / 432 MB, free: 14.77 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001879/0.1423, allocations: 322.8 kB / 432.4 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001257/0.1424, allocations: 43.91 kB / 432.4 MB, free: 14.4 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002082/0.1426, allocations: 141.6 kB / 432.5 MB, free: 14.21 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003263/0.143, allocations: 185.5 kB / 432.7 MB, free: 13.98 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.558e-06/0.143, allocations: 7.938 kB / 432.7 MB, free: 13.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004151/0.1434, allocations: 197.4 kB / 432.9 MB, free: 13.78 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/0.1434, allocations: 4 kB / 432.9 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.393e-05/0.1434, allocations: 4 kB / 432.9 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.752e-05/0.1435, allocations: 7.984 kB / 432.9 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001705/0.1436, allocations: 47.92 kB / 433 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.1436, allocations: 4 kB / 433 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001103/0.1437, allocations: 15.94 kB / 433 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.747e-05/0.1438, allocations: 16 kB / 433 MB, free: 13.68 MB / 366.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.0001256/0.1439, allocations: 141.8 kB / 433.2 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001639/0.1441, allocations: 85.58 kB / 433.2 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001069/0.1442, allocations: 20.7 kB / 433.3 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.1442, allocations: 0 / 433.3 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/0.1442, allocations: 4 kB / 433.3 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.1442, allocations: 0 / 433.3 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003143/0.1445, allocations: 209.5 kB / 433.5 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1445, allocations: 0 / 433.5 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001845/0.1447, allocations: 39.91 kB / 433.5 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.1447, allocations: 4 kB / 433.5 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.528e-05/0.1447, allocations: 8 kB / 433.5 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.1447, allocations: 0 / 433.5 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.1447, allocations: 4 kB / 433.5 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006147/0.1453, allocations: 384.2 kB / 433.9 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.526e-05/0.1454, allocations: 92.98 kB / 434 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.391e-05/0.1454, allocations: 4.094 kB / 434 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001428/0.1456, allocations: 15.92 kB / 434 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.788e-05/0.1456, allocations: 7.938 kB / 434 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.963e-06/0.1456, allocations: 4 kB / 434 MB, free: 12.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.623e-05/0.1457, allocations: 99.27 kB / 434.1 MB, free: 12.47 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1457, allocations: 4 kB / 434.1 MB, free: 12.47 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003291/0.146, allocations: 28.06 kB / 434.1 MB, free: 12.44 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 (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.0009113/0.1469, allocations: 0.9215 MB / 435.1 MB, free: 11.49 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003621/0.1473, allocations: 115.8 kB / 435.2 MB, free: 11.38 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.1473, allocations: 0 / 435.2 MB, free: 11.38 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001008/0.1474, allocations: 24.92 kB / 435.2 MB, free: 11.36 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005163/0.1479, allocations: 62.05 kB / 435.3 MB, free: 11.3 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002697/0.1506, allocations: 2.056 MB / 437.3 MB, free: 9.062 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003624/0.151, allocations: 0.7123 MB / 438 MB, free: 8.324 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.187e-05/0.151, allocations: 13.08 kB / 438.1 MB, free: 8.312 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.294e-05/0.1511, allocations: 39.42 kB / 438.1 MB, free: 8.273 MB / 366.1 MB Notification: Performance of SimCode: time 8.92e-07/0.1511, allocations: 0 / 438.1 MB, free: 8.273 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02972/0.1808, allocations: 2.794 MB / 440.9 MB, free: 5.629 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.406/8.587, allocations: 7.797 kB / 440.9 MB, free: 5.621 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000593942 Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable PI.x in file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.x from file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.y from file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_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.50544189500215]