Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00171/0.00171, allocations: 112 kB / 20.43 MB, free: 1.309 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001416/0.001416, allocations: 191.2 kB / 23.72 MB, free: 4.559 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.598/1.598, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] 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.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00163/0.00163, allocations: 47.94 kB / 370.4 MB, free: 9.883 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3322/0.3339, allocations: 52.18 MB / 422.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003858/0.3377, allocations: 2.045 MB / 424.7 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009742/0.3387, allocations: 0.5065 MB / 425.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001126/0.3388, allocations: 4 kB / 425.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001355/0.339, allocations: 15.8 kB / 425.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.535e-05/0.339, allocations: 27.72 kB / 425.2 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003202/0.3393, allocations: 59.88 kB / 425.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001973/0.3395, allocations: 123.5 kB / 425.4 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001548/0.3397, allocations: 33.62 kB / 425.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001002/0.3398, allocations: 55.84 kB / 425.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.965e-05/0.3399, allocations: 59.7 kB / 425.5 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.549e-05/0.3399, allocations: 8 kB / 425.5 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.376e-05/0.3399, allocations: 12 kB / 425.5 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.478e-05/0.34, allocations: 23.92 kB / 425.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.052e-05/0.3401, allocations: 55.67 kB / 425.6 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000225/0.3403, allocations: 127.8 kB / 425.8 MB, free: 11.46 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.3403, allocations: 4 kB / 425.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3403, allocations: 0 / 425.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.778e-06/0.3403, allocations: 0 / 425.8 MB, free: 11.45 MB / 334.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.0006593/0.341, allocations: 357.8 kB / 426.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.773e-05/0.341, allocations: 8.031 kB / 426.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.281e-05/0.3411, allocations: 46.73 kB / 426.2 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.609e-05/0.3411, allocations: 16.84 kB / 426.2 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000289/0.3414, allocations: 146.3 kB / 426.3 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.782e-05/0.3414, allocations: 8.375 kB / 426.3 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.801e-05/0.3414, allocations: 12.38 kB / 426.3 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005184/0.342, allocations: 238.7 kB / 426.6 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.746e-05/0.342, allocations: 3.953 kB / 426.6 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.791e-05/0.342, allocations: 12 kB / 426.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.517e-06/0.342, allocations: 8 kB / 426.6 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002591/0.3423, allocations: 91.8 kB / 426.7 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007252/0.343, allocations: 0.5271 MB / 427.2 MB, free: 9.852 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002955/0.3433, allocations: 135.9 kB / 427.3 MB, free: 9.691 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001701/0.3435, allocations: 78.62 kB / 427.4 MB, free: 9.605 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.01e-05/0.3435, allocations: 4 kB / 427.4 MB, free: 9.602 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.533e-05/0.3435, allocations: 38.5 kB / 427.5 MB, free: 9.555 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.453e-06/0.3435, allocations: 0 / 427.5 MB, free: 9.555 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005339/0.3441, allocations: 181.4 kB / 427.6 MB, free: 9.371 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.898e-05/0.3441, allocations: 114.8 kB / 427.8 MB, free: 9.234 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001193/0.3443, allocations: 130.1 kB / 427.9 MB, free: 9.094 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.797e-05/0.3443, allocations: 25.7 kB / 427.9 MB, free: 9.062 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.102e-05/0.3444, allocations: 112.1 kB / 428 MB, free: 8.949 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.126e-05/0.3444, allocations: 31.73 kB / 428 MB, free: 8.918 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.425e-05/0.3445, allocations: 33.7 kB / 428.1 MB, free: 8.879 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.3446, allocations: 326.9 kB / 428.4 MB, free: 8.551 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001132/0.3447, allocations: 31.98 kB / 428.4 MB, free: 8.52 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001847/0.3449, allocations: 132.8 kB / 428.6 MB, free: 8.344 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003075/0.3452, allocations: 176.8 kB / 428.7 MB, free: 8.125 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.549e-06/0.3452, allocations: 4 kB / 428.7 MB, free: 8.121 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003717/0.3456, allocations: 189.6 kB / 428.9 MB, free: 7.93 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.3456, allocations: 7.984 kB / 428.9 MB, free: 7.922 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.3456, allocations: 7.938 kB / 428.9 MB, free: 7.914 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.025e-05/0.3456, allocations: 4 kB / 428.9 MB, free: 7.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001833/0.3458, allocations: 39.92 kB / 429 MB, free: 7.871 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.274e-05/0.3458, allocations: 8 kB / 429 MB, free: 7.863 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001121/0.3459, allocations: 23.88 kB / 429 MB, free: 7.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.417e-05/0.346, allocations: 8 kB / 429 MB, free: 7.832 MB / 334.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.0001181/0.3461, allocations: 137.8 kB / 429.2 MB, free: 7.688 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001483/0.3462, allocations: 81.53 kB / 429.2 MB, free: 7.602 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.477e-05/0.3463, allocations: 24.64 kB / 429.3 MB, free: 7.574 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.02e-06/0.3463, allocations: 4 kB / 429.3 MB, free: 7.57 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.3463, allocations: 0 / 429.3 MB, free: 7.57 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.3463, allocations: 480 / 429.3 MB, free: 7.57 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002968/0.3466, allocations: 172.7 kB / 429.4 MB, free: 7.359 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.3466, allocations: 0 / 429.4 MB, free: 7.359 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001763/0.3468, allocations: 39.92 kB / 429.5 MB, free: 7.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.3468, allocations: 7.938 kB / 429.5 MB, free: 7.312 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.787e-05/0.3468, allocations: 11.88 kB / 429.5 MB, free: 7.301 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/0.3468, allocations: 3.984 kB / 429.5 MB, free: 7.297 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3468, allocations: 0 / 429.5 MB, free: 7.297 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005531/0.3473, allocations: 374.9 kB / 429.9 MB, free: 6.914 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.399e-05/0.3474, allocations: 15.92 kB / 429.9 MB, free: 6.898 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.76e-05/0.3474, allocations: 11.94 kB / 429.9 MB, free: 6.887 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001324/0.3475, allocations: 11.98 kB / 429.9 MB, free: 6.875 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.868e-05/0.3476, allocations: 3.938 kB / 429.9 MB, free: 6.871 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.119e-05/0.3476, allocations: 7.984 kB / 429.9 MB, free: 6.863 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.952e-05/0.3476, allocations: 102.9 kB / 430 MB, free: 6.766 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3476, allocations: 0 / 430 MB, free: 6.766 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003176/0.348, allocations: 27.95 kB / 430 MB, free: 6.738 MB / 334.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.0008604/0.3488, allocations: 0.9039 MB / 430.9 MB, free: 5.805 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000328/0.3492, allocations: 111.8 kB / 431 MB, free: 5.695 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3492, allocations: 3.938 kB / 431.1 MB, free: 5.691 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.369e-05/0.3492, allocations: 24.86 kB / 431.1 MB, free: 5.668 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005239/0.3498, allocations: 63.27 kB / 431.1 MB, free: 5.609 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002952/0.3527, allocations: 2.025 MB / 433.2 MB, free: 3.414 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004326/0.3532, allocations: 0.7161 MB / 433.9 MB, free: 2.672 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.573e-05/0.3532, allocations: 8.656 kB / 433.9 MB, free: 2.664 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.918e-05/0.3533, allocations: 39.42 kB / 433.9 MB, free: 2.625 MB / 334.1 MB Notification: Performance of SimCode: time 1.964e-06/0.3533, allocations: 0 / 433.9 MB, free: 2.625 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03667/0.39, allocations: 2.93 MB / 436.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/11.88, allocations: 15.94 kB / 436.9 MB, free: 15.84 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv. Warning: Get data of variable PI.x from file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv. Warning: Get data of variable PI.y from file Modelica_4.0.0_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: 14.771911078998528]