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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001182/0.001182, allocations: 111.7 kB / 17.06 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00126/0.00126, allocations: 194.9 kB / 18 MB, free: 5.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.38/1.38, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001096/0.001096, allocations: 47.92 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2486/0.2497, allocations: 49.44 MB / 400.2 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003585/0.2533, allocations: 1.986 MB / 402.2 MB, free: 6.805 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001107/0.2545, allocations: 0.5337 MB / 402.7 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001583/0.2547, allocations: 4 kB / 402.7 MB, free: 6.262 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001252/0.2548, allocations: 15.8 kB / 402.8 MB, free: 6.246 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001575/0.255, allocations: 31.72 kB / 402.8 MB, free: 6.215 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002582/0.2553, allocations: 63.8 kB / 402.8 MB, free: 6.152 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002016/0.2555, allocations: 115.6 kB / 403 MB, free: 6.039 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001722/0.2557, allocations: 65.34 kB / 403 MB, free: 5.973 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.216e-05/0.2558, allocations: 55.72 kB / 403.1 MB, free: 5.918 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.904e-05/0.2559, allocations: 51.77 kB / 403.1 MB, free: 5.867 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.928e-05/0.2559, allocations: 12 kB / 403.1 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.972e-05/0.2559, allocations: 12 kB / 403.2 MB, free: 5.844 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.001e-05/0.256, allocations: 23.92 kB / 403.2 MB, free: 5.82 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.593e-05/0.256, allocations: 59.66 kB / 403.2 MB, free: 5.762 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001915/0.2562, allocations: 133.2 kB / 403.4 MB, free: 5.633 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.2562, allocations: 0 / 403.4 MB, free: 5.633 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2563, allocations: 0 / 403.4 MB, free: 5.633 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.253e-06/0.2563, allocations: 0 / 403.4 MB, free: 5.633 MB / 318.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.0006461/0.2569, allocations: 435 kB / 403.8 MB, free: 5.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.257, allocations: 8.031 kB / 403.8 MB, free: 5.152 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.329e-05/0.257, allocations: 46.73 kB / 403.8 MB, free: 5.098 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.101e-05/0.2571, allocations: 16.75 kB / 403.9 MB, free: 5.082 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002772/0.2574, allocations: 208.1 kB / 404.1 MB, free: 4.84 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.583e-05/0.2574, allocations: 12.38 kB / 404.1 MB, free: 4.828 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.27e-05/0.2574, allocations: 16.38 kB / 404.1 MB, free: 4.812 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005111/0.2579, allocations: 254.8 kB / 404.3 MB, free: 4.543 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.547e-05/0.258, allocations: 4 kB / 404.3 MB, free: 4.539 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.687e-05/0.258, allocations: 4 kB / 404.3 MB, free: 4.535 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.258, allocations: 4 kB / 404.4 MB, free: 4.531 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002666/0.2583, allocations: 87.88 kB / 404.4 MB, free: 4.445 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006667/0.2589, allocations: 0.5843 MB / 405 MB, free: 3.789 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003641/0.2593, allocations: 151.7 kB / 405.2 MB, free: 3.613 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001689/0.2595, allocations: 78.75 kB / 405.2 MB, free: 3.527 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.864e-05/0.2595, allocations: 8 kB / 405.3 MB, free: 3.52 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.028e-05/0.2596, allocations: 34.56 kB / 405.3 MB, free: 3.477 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 2.715e-06/0.2596, allocations: 3.984 kB / 405.3 MB, free: 3.473 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005559/0.2602, allocations: 185.6 kB / 405.5 MB, free: 3.285 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.84e-05/0.2602, allocations: 119 kB / 405.6 MB, free: 3.145 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001098/0.2604, allocations: 130 kB / 405.7 MB, free: 3.004 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.805e-05/0.2604, allocations: 29.7 kB / 405.7 MB, free: 2.969 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.893e-05/0.2605, allocations: 108 kB / 405.9 MB, free: 2.859 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.933e-05/0.2605, allocations: 27.64 kB / 405.9 MB, free: 2.832 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.495e-05/0.2606, allocations: 37.7 kB / 405.9 MB, free: 2.789 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.2607, allocations: 322.8 kB / 406.2 MB, free: 2.465 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001253/0.2608, allocations: 39.97 kB / 406.3 MB, free: 2.426 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001751/0.261, allocations: 135.2 kB / 406.4 MB, free: 2.246 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003088/0.2613, allocations: 189.5 kB / 406.6 MB, free: 2.012 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.795e-06/0.2614, allocations: 7.938 kB / 406.6 MB, free: 2.004 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003894/0.2617, allocations: 197.4 kB / 406.8 MB, free: 1.805 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.2618, allocations: 4 kB / 406.8 MB, free: 1.801 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.2618, allocations: 4 kB / 406.8 MB, free: 1.797 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.2618, allocations: 4 kB / 406.8 MB, free: 1.793 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001605/0.262, allocations: 51.84 kB / 406.8 MB, free: 1.742 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/0.262, allocations: 4 kB / 406.9 MB, free: 1.738 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001151/0.2621, allocations: 23.83 kB / 406.9 MB, free: 1.715 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.74e-05/0.2621, allocations: 12 kB / 406.9 MB, free: 1.703 MB / 318.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.0001125/0.2623, allocations: 129.9 kB / 407 MB, free: 1.566 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001475/0.2624, allocations: 93.44 kB / 407.1 MB, free: 1.469 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.867e-05/0.2625, allocations: 20.7 kB / 407.1 MB, free: 1.441 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.055e-06/0.2625, allocations: 0 / 407.1 MB, free: 1.441 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.255e-06/0.2625, allocations: 8 kB / 407.1 MB, free: 1.434 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.2625, allocations: 0 / 407.1 MB, free: 1.434 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002838/0.2628, allocations: 213.5 kB / 407.3 MB, free: 1.176 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.2628, allocations: 0 / 407.3 MB, free: 1.176 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001956/0.263, allocations: 35.92 kB / 407.4 MB, free: 1.141 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.606e-06/0.263, allocations: 4 kB / 407.4 MB, free: 1.137 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.611e-05/0.2631, allocations: 7.984 kB / 407.4 MB, free: 1.129 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.2631, allocations: 0 / 407.4 MB, free: 1.129 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.2631, allocations: 0 / 407.4 MB, free: 1.129 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000554/0.2636, allocations: 386.7 kB / 407.8 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.788e-05/0.2637, allocations: 89.03 kB / 407.9 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.469e-05/0.2637, allocations: 8 kB / 407.9 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000138/0.2639, allocations: 4.094 kB / 407.9 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.011e-05/0.2639, allocations: 15.86 kB / 407.9 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.237e-06/0.264, allocations: 4 kB / 407.9 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.402e-05/0.264, allocations: 99.27 kB / 408 MB, free: 0.5 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.264, allocations: 0 / 408 MB, free: 0.5 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003437/0.2644, allocations: 36 kB / 408 MB, free: 476 kB / 318.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.0008293/0.2652, allocations: 0.9153 MB / 408.9 MB, free: 15.52 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003366/0.2656, allocations: 119.8 kB / 409.1 MB, free: 15.4 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.2656, allocations: 0 / 409.1 MB, free: 15.4 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001041/0.2657, allocations: 29.33 kB / 409.1 MB, free: 15.38 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004952/0.2662, allocations: 64.02 kB / 409.1 MB, free: 15.31 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00239/0.2686, allocations: 2.052 MB / 411.2 MB, free: 13.08 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002962/0.2689, allocations: 0.7123 MB / 411.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.199e-05/0.269, allocations: 13.08 kB / 411.9 MB, free: 12.33 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.027e-05/0.2691, allocations: 39.42 kB / 412 MB, free: 12.29 MB / 334.1 MB Notification: Performance of SimCode: time 5.51e-07/0.2691, allocations: 3.938 kB / 412 MB, free: 12.29 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02575/0.2948, allocations: 2.782 MB / 414.7 MB, free: 9.656 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.96/8.255, allocations: 18.22 kB / 414.8 MB, free: 9.648 MB / 334.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.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.0012 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv","/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) "Error: Could not read variable PI.x in file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.x from file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.y from file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_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