Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.001379/0.001379, allocations: 111.6 kB / 20.43 MB, free: 1.473 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.001473/0.001473, allocations: 212.9 kB / 23.74 MB, free: 4.688 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.553/1.553, allocations: 230.6 MB / 257.5 MB, free: 8.039 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.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001566/0.001566, allocations: 47.92 kB / 377.8 MB, free: 3.211 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3508/0.3524, allocations: 53.37 MB / 431.1 MB, free: 6.906 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.004545/0.3569, allocations: 2.103 MB / 433.2 MB, free: 4.801 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001066/0.358, allocations: 0.5415 MB / 433.8 MB, free: 4.254 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001207/0.3581, allocations: 7.938 kB / 433.8 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001181/0.3582, allocations: 15.8 kB / 433.8 MB, free: 4.23 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.64e-05/0.3583, allocations: 31.73 kB / 433.8 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002813/0.3586, allocations: 55.88 kB / 433.9 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002141/0.3588, allocations: 131.5 kB / 434 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001606/0.359, allocations: 37.98 kB / 434 MB, free: 3.969 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.489e-05/0.3591, allocations: 55.8 kB / 434.1 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.527e-05/0.3592, allocations: 55.69 kB / 434.2 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.085e-05/0.3592, allocations: 15.94 kB / 434.2 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.944e-05/0.3592, allocations: 8 kB / 434.2 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.166e-05/0.3592, allocations: 27.92 kB / 434.2 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.894e-05/0.3593, allocations: 59.67 kB / 434.3 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002407/0.3596, allocations: 135.8 kB / 434.4 MB, free: 3.621 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.606e-06/0.3596, allocations: 4 kB / 434.4 MB, free: 3.617 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3596, allocations: 0 / 434.4 MB, free: 3.617 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.3596, allocations: 3.938 kB / 434.4 MB, free: 3.613 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.000631/0.3602, allocations: 353.8 kB / 434.7 MB, free: 3.238 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.3602, allocations: 8.031 kB / 434.8 MB, free: 3.23 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.926e-05/0.3603, allocations: 50.62 kB / 434.8 MB, free: 3.172 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.922e-05/0.3604, allocations: 20.83 kB / 434.8 MB, free: 3.152 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003044/0.3607, allocations: 146.3 kB / 435 MB, free: 2.984 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.696e-05/0.3607, allocations: 8.375 kB / 435 MB, free: 2.977 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.569e-05/0.3607, allocations: 16.31 kB / 435 MB, free: 2.961 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005262/0.3612, allocations: 243.4 kB / 435.2 MB, free: 2.699 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.802e-05/0.3613, allocations: 3.938 kB / 435.2 MB, free: 2.695 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.596e-05/0.3613, allocations: 8 kB / 435.2 MB, free: 2.688 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.3613, allocations: 4 kB / 435.2 MB, free: 2.684 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002481/0.3615, allocations: 79.88 kB / 435.3 MB, free: 2.605 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007551/0.3623, allocations: 0.5389 MB / 435.9 MB, free: 2.008 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003533/0.3626, allocations: 143.9 kB / 436 MB, free: 1.84 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000166/0.3628, allocations: 70.58 kB / 436.1 MB, free: 1.762 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.263e-05/0.3628, allocations: 0 / 436.1 MB, free: 1.762 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.824e-05/0.3629, allocations: 42.56 kB / 436.1 MB, free: 1.711 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.092e-06/0.3629, allocations: 0 / 436.1 MB, free: 1.711 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.00053/0.3634, allocations: 177.3 kB / 436.3 MB, free: 1.531 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.366e-05/0.3635, allocations: 114.8 kB / 436.4 MB, free: 1.395 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001249/0.3636, allocations: 134.2 kB / 436.5 MB, free: 1.254 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.898e-05/0.3636, allocations: 25.7 kB / 436.6 MB, free: 1.223 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.738e-05/0.3637, allocations: 128.1 kB / 436.7 MB, free: 1.094 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.823e-05/0.3637, allocations: 27.78 kB / 436.7 MB, free: 1.066 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.15e-05/0.3638, allocations: 37.7 kB / 436.7 MB, free: 1.023 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.364, allocations: 326.8 kB / 437.1 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001198/0.3641, allocations: 39.91 kB / 437.1 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002001/0.3643, allocations: 133.7 kB / 437.2 MB, free: 488 kB / 334.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = PI.y_start (0.0 = PI.y_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.000448/0.3648, allocations: 211.7 kB / 437.4 MB, free: 228 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.3648, allocations: 7.938 kB / 437.4 MB, free: 220 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003795/0.3651, allocations: 189.6 kB / 437.6 MB, free: 24 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.3652, allocations: 16.05 kB / 437.6 MB, free: 8 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.3652, allocations: 3.938 kB / 437.7 MB, free: 4 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.833e-05/0.3652, allocations: 8.047 kB / 437.7 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001533/0.3654, allocations: 39.88 kB / 437.7 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.627e-05/0.3654, allocations: 11.98 kB / 437.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001061/0.3655, allocations: 19.89 kB / 437.7 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.479e-05/0.3655, allocations: 8 kB / 437.7 MB, free: 15.92 MB / 350.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: PI.y = PI.y_start. 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.0001487/0.3656, allocations: 137.7 kB / 437.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001675/0.3658, allocations: 93.58 kB / 438 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.519e-05/0.3659, allocations: 16.72 kB / 438 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.429e-06/0.3659, allocations: 4 kB / 438 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.3659, allocations: 0 / 438 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.3659, allocations: 0 / 438 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002976/0.3662, allocations: 192.5 kB / 438.2 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.3662, allocations: 0 / 438.2 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002189/0.3664, allocations: 47.91 kB / 438.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.3664, allocations: 4 kB / 438.2 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.196e-05/0.3664, allocations: 0 / 438.2 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.3664, allocations: 4 kB / 438.2 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3664, allocations: 4 kB / 438.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000591/0.367, allocations: 385.9 kB / 438.6 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.936e-05/0.367, allocations: 15.95 kB / 438.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.664e-05/0.3671, allocations: 4 kB / 438.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001381/0.3672, allocations: 7.984 kB / 438.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.192e-05/0.3672, allocations: 11.98 kB / 438.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.877e-06/0.3673, allocations: 4 kB / 438.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.528e-05/0.3673, allocations: 106 kB / 438.8 MB, free: 14.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3673, allocations: 0 / 438.8 MB, free: 14.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003284/0.3677, allocations: 27.95 kB / 438.8 MB, free: 14.8 MB / 350.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.0008865/0.3685, allocations: 0.9155 MB / 439.7 MB, free: 13.85 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003525/0.3689, allocations: 135.7 kB / 439.8 MB, free: 13.72 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3689, allocations: 0 / 439.8 MB, free: 13.72 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.687e-05/0.369, allocations: 23.98 kB / 439.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000513/0.3695, allocations: 60.92 kB / 439.9 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002704/0.3722, allocations: 2.102 MB / 442 MB, free: 11.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003699/0.3726, allocations: 0.7201 MB / 442.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.97e-05/0.3726, allocations: 9.094 kB / 442.7 MB, free: 10.6 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.52e-05/0.3727, allocations: 39.42 kB / 442.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.3727, allocations: 0 / 442.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03452/0.4072, allocations: 3.201 MB / 446 MB, free: 7.531 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.88/12.29, allocations: 7.688 kB / 446 MB, free: 7.527 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.948120072949678]