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.001257/0.001257, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 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.001362/0.001362, allocations: 204.6 kB / 23.72 MB, free: 4.391 MB / 14.72 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 1.437/1.437, allocations: 230.5 MB / 257.4 MB, free: 7.738 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001869/0.001869, allocations: 59.91 kB / 377.7 MB, free: 2.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.365/0.3669, allocations: 53.41 MB / 431.1 MB, free: 6.477 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.004503/0.3714, allocations: 2.035 MB / 433.2 MB, free: 4.441 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001216/0.3726, allocations: 0.5103 MB / 433.7 MB, free: 3.926 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001174/0.3728, allocations: 4 kB / 433.7 MB, free: 3.922 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001172/0.3729, allocations: 19.73 kB / 433.7 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.851e-05/0.373, allocations: 31.72 kB / 433.7 MB, free: 3.871 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000322/0.3733, allocations: 63.81 kB / 433.8 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002167/0.3735, allocations: 127.6 kB / 433.9 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001654/0.3737, allocations: 35.67 kB / 433.9 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001005/0.3738, allocations: 55.8 kB / 434 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.434e-05/0.3739, allocations: 51.69 kB / 434 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.173e-05/0.3739, allocations: 12 kB / 434.1 MB, free: 3.523 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.279e-05/0.3739, allocations: 8 kB / 434.1 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.53e-05/0.3739, allocations: 27.86 kB / 434.1 MB, free: 3.488 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.264e-05/0.374, allocations: 47.8 kB / 434.1 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002337/0.3742, allocations: 139.2 kB / 434.3 MB, free: 3.305 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3743, allocations: 0 / 434.3 MB, free: 3.305 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3743, allocations: 4 kB / 434.3 MB, free: 3.301 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.872e-06/0.3743, allocations: 0 / 434.3 MB, free: 3.301 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.0006238/0.3749, allocations: 353.8 kB / 434.6 MB, free: 2.926 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.3749, allocations: 15.98 kB / 434.6 MB, free: 2.91 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.551e-05/0.375, allocations: 46.73 kB / 434.7 MB, free: 2.855 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.735e-05/0.375, allocations: 16.84 kB / 434.7 MB, free: 2.84 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003089/0.3754, allocations: 150.3 kB / 434.8 MB, free: 2.668 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.087e-05/0.3754, allocations: 8.375 kB / 434.9 MB, free: 2.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.293e-05/0.3754, allocations: 20.33 kB / 434.9 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005095/0.3759, allocations: 231.5 kB / 435.1 MB, free: 2.391 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.801e-05/0.3759, allocations: 4 kB / 435.1 MB, free: 2.387 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.652e-05/0.376, allocations: 4 kB / 435.1 MB, free: 2.383 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.376, allocations: 0 / 435.1 MB, free: 2.383 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000247/0.3762, allocations: 91.88 kB / 435.2 MB, free: 2.293 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000754/0.377, allocations: 0.5194 MB / 435.7 MB, free: 1.715 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003592/0.3773, allocations: 143.9 kB / 435.9 MB, free: 1.547 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00017/0.3775, allocations: 66.62 kB / 435.9 MB, free: 1.473 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.531e-05/0.3775, allocations: 8 kB / 435.9 MB, free: 1.465 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.69e-05/0.3775, allocations: 34.56 kB / 436 MB, free: 1.422 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.362e-06/0.3775, allocations: 15.88 kB / 436 MB, free: 1.406 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005103/0.3781, allocations: 177.3 kB / 436.2 MB, free: 1.227 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.545e-05/0.3782, allocations: 118.7 kB / 436.3 MB, free: 1.086 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001258/0.3783, allocations: 136.9 kB / 436.4 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.413e-05/0.3783, allocations: 29.7 kB / 436.4 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.71e-05/0.3784, allocations: 120 kB / 436.5 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.663e-05/0.3784, allocations: 27.78 kB / 436.6 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.648e-05/0.3785, allocations: 33.72 kB / 436.6 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001871/0.3787, allocations: 331 kB / 436.9 MB, free: 400 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001199/0.3788, allocations: 35.97 kB / 437 MB, free: 364 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002187/0.379, allocations: 137.1 kB / 437.1 MB, free: 180 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.0004696/0.3795, allocations: 204.6 kB / 437.3 MB, free: 15.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.113e-06/0.3795, allocations: 12.03 kB / 437.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003878/0.3799, allocations: 189.2 kB / 437.5 MB, free: 15.72 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.3799, allocations: 4.469 kB / 437.5 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.3799, allocations: 8 kB / 437.5 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.912e-05/0.3799, allocations: 4 kB / 437.5 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001585/0.3801, allocations: 51.91 kB / 437.6 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.01e-05/0.3801, allocations: 7.938 kB / 437.6 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001035/0.3802, allocations: 19.88 kB / 437.6 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.753e-05/0.3802, allocations: 16 kB / 437.6 MB, free: 15.61 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.0001324/0.3803, allocations: 129.7 kB / 437.7 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000168/0.3805, allocations: 85.62 kB / 437.8 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.054e-05/0.3806, allocations: 24.66 kB / 437.8 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.3806, allocations: 4 kB / 437.8 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.3806, allocations: 0 / 437.8 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/0.3806, allocations: 480 / 437.8 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002754/0.3809, allocations: 180.5 kB / 438 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.3809, allocations: 0 / 438 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002041/0.3811, allocations: 39.97 kB / 438.1 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.3811, allocations: 0 / 438.1 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.987e-05/0.3811, allocations: 15.92 kB / 438.1 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.3811, allocations: 0 / 438.1 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.307e-06/0.3811, allocations: 4 kB / 438.1 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005879/0.3817, allocations: 387.6 kB / 438.5 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.258e-05/0.3817, allocations: 15.95 kB / 438.5 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.371e-05/0.3817, allocations: 7.938 kB / 438.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001296/0.3819, allocations: 8 kB / 438.5 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.025e-05/0.3819, allocations: 3.984 kB / 438.5 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.319e-05/0.3819, allocations: 8 kB / 438.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.05e-05/0.382, allocations: 106 kB / 438.6 MB, free: 14.54 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.382, allocations: 4.062 kB / 438.6 MB, free: 14.54 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003204/0.3823, allocations: 35.89 kB / 438.6 MB, free: 14.5 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.0008652/0.3832, allocations: 0.9116 MB / 439.6 MB, free: 13.56 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000365/0.3835, allocations: 127.3 kB / 439.7 MB, free: 13.44 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.3835, allocations: 0 / 439.7 MB, free: 13.44 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001076/0.3836, allocations: 31.91 kB / 439.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005041/0.3842, allocations: 63.98 kB / 439.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002678/0.3868, allocations: 2.094 MB / 441.9 MB, free: 11.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001257/0.387, allocations: 102.7 kB / 442 MB, free: 10.95 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.357e-05/0.387, allocations: 13.34 kB / 442 MB, free: 10.94 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.309e-05/0.3871, allocations: 39.42 kB / 442 MB, free: 10.9 MB / 350.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3871, allocations: 4 kB / 442 MB, free: 10.89 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03927/0.4264, allocations: 3.58 MB / 445.6 MB, free: 7.465 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/11.7, allocations: 4 kB / 445.6 MB, free: 7.461 MB / 350.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 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.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_trunk_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.611663584131747]