Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008513/0.0008513, allocations: 177.1 kB / 16.11 MB, free: 5.691 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.208/1.208, allocations: 205 MB / 221.9 MB, free: 9.148 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006772/0.0006773, allocations: 86.12 kB / 269.9 MB, free: 8.672 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06599/0.06599, allocations: 12.57 MB / 330.3 MB, free: 12.07 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003482/0.0003482, allocations: 12 kB / 391.2 MB, free: 66.34 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06727/0.06764, allocations: 49.97 MB / 441.1 MB, free: 16.31 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.001728/0.0694, allocations: 1.719 MB / 442.8 MB, free: 14.58 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006797/0.07011, allocations: 0.5347 MB / 443.4 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.256e-05/0.07022, allocations: 0 / 443.4 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.789e-05/0.07033, allocations: 11.92 kB / 443.4 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.814e-05/0.07039, allocations: 19.78 kB / 443.4 MB, free: 14 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000276/0.07068, allocations: 59.89 kB / 443.5 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000121/0.07081, allocations: 119.6 kB / 443.6 MB, free: 13.83 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001167/0.07093, allocations: 44.89 kB / 443.6 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.434e-05/0.07099, allocations: 43.73 kB / 443.7 MB, free: 13.74 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.844e-05/0.07106, allocations: 47.77 kB / 443.7 MB, free: 13.7 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.869e-05/0.07108, allocations: 4 kB / 443.7 MB, free: 13.69 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.454e-05/0.0711, allocations: 4 kB / 443.7 MB, free: 13.69 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.046e-05/0.07113, allocations: 15.92 kB / 443.7 MB, free: 13.67 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.487e-05/0.07118, allocations: 55.67 kB / 443.8 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001199/0.0713, allocations: 111.8 kB / 443.9 MB, free: 13.51 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.07131, allocations: 0 / 443.9 MB, free: 13.51 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.07132, allocations: 0 / 443.9 MB, free: 13.51 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.898e-06/0.07133, allocations: 3.938 kB / 443.9 MB, free: 13.5 MB / 298.7 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.0004178/0.07175, allocations: 411.1 kB / 444.3 MB, free: 13.05 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.33e-05/0.07179, allocations: 8.031 kB / 444.3 MB, free: 13.05 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.246e-05/0.07183, allocations: 46.73 kB / 444.4 MB, free: 12.99 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.998e-05/0.07187, allocations: 20.75 kB / 444.4 MB, free: 12.97 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001355/0.07201, allocations: 200.1 kB / 444.6 MB, free: 12.74 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.167e-05/0.07203, allocations: 8.375 kB / 444.6 MB, free: 12.73 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.61e-05/0.07206, allocations: 16.38 kB / 444.6 MB, free: 12.71 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003859/0.07245, allocations: 234.7 kB / 444.8 MB, free: 12.46 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.07248, allocations: 15.88 kB / 444.9 MB, free: 12.45 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.18e-05/0.0725, allocations: 4 kB / 444.9 MB, free: 12.44 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.07251, allocations: 4 kB / 444.9 MB, free: 12.44 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002222/0.07273, allocations: 99.88 kB / 445 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004425/0.07319, allocations: 0.5842 MB / 445.5 MB, free: 11.68 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002177/0.07342, allocations: 155.9 kB / 445.7 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001332/0.07356, allocations: 78.64 kB / 445.8 MB, free: 11.41 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.632e-05/0.07359, allocations: 3.984 kB / 445.8 MB, free: 11.41 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.636e-05/0.07362, allocations: 42.5 kB / 445.8 MB, free: 11.36 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.714e-06/0.07362, allocations: 0 / 445.8 MB, free: 11.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.000446/0.07408, allocations: 193.4 kB / 446 MB, free: 11.16 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.522e-05/0.07412, allocations: 111 kB / 446.1 MB, free: 11.03 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.658e-05/0.0742, allocations: 131.5 kB / 446.2 MB, free: 10.89 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.498e-06/0.07421, allocations: 33.7 kB / 446.3 MB, free: 10.86 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.588e-05/0.07425, allocations: 111.8 kB / 446.4 MB, free: 10.74 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.797e-05/0.07428, allocations: 23.7 kB / 446.4 MB, free: 10.72 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.408e-05/0.07431, allocations: 21.7 kB / 446.4 MB, free: 10.69 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.861e-05/0.07435, allocations: 327.2 kB / 446.7 MB, free: 10.36 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001017/0.07446, allocations: 39.97 kB / 446.8 MB, free: 10.32 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000117/0.07458, allocations: 140.7 kB / 446.9 MB, free: 10.14 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002238/0.07482, allocations: 196.6 kB / 447.1 MB, free: 9.902 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.07483, allocations: 3.938 kB / 447.1 MB, free: 9.898 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003048/0.07514, allocations: 205.6 kB / 447.3 MB, free: 9.691 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/0.07516, allocations: 8 kB / 447.3 MB, free: 9.684 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.07517, allocations: 7.938 kB / 447.3 MB, free: 9.676 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.0752, allocations: 4 kB / 447.3 MB, free: 9.672 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001956/0.0754, allocations: 43.92 kB / 447.4 MB, free: 9.629 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.07542, allocations: 7.984 kB / 447.4 MB, free: 9.621 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.607e-05/0.07552, allocations: 19.91 kB / 447.4 MB, free: 9.602 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.104e-05/0.07554, allocations: 8 kB / 447.4 MB, free: 9.594 MB / 298.7 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 7.005e-05/0.07561, allocations: 134.7 kB / 447.5 MB, free: 9.453 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001158/0.07573, allocations: 81.53 kB / 447.6 MB, free: 9.367 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.58e-05/0.07578, allocations: 24.64 kB / 447.7 MB, free: 9.344 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.07578, allocations: 4 kB / 447.7 MB, free: 9.34 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.07579, allocations: 0 / 447.7 MB, free: 9.34 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.0758, allocations: 240 / 447.7 MB, free: 9.34 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001949/0.076, allocations: 201.5 kB / 447.9 MB, free: 9.094 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.07601, allocations: 0 / 447.9 MB, free: 9.094 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001574/0.07617, allocations: 43.97 kB / 447.9 MB, free: 9.051 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.07619, allocations: 3.938 kB / 447.9 MB, free: 9.047 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.291e-05/0.0762, allocations: 11.92 kB / 447.9 MB, free: 9.035 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.07621, allocations: 8 kB / 447.9 MB, free: 9.027 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.07622, allocations: 0 / 447.9 MB, free: 9.027 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000402/0.07662, allocations: 383.5 kB / 448.3 MB, free: 8.633 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.278e-05/0.07666, allocations: 88.98 kB / 448.4 MB, free: 8.527 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.057e-05/0.07668, allocations: 7.938 kB / 448.4 MB, free: 8.52 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001272/0.07682, allocations: 16.05 kB / 448.4 MB, free: 8.504 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.522e-05/0.07686, allocations: 11.92 kB / 448.4 MB, free: 8.492 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.963e-06/0.07687, allocations: 4 kB / 448.4 MB, free: 8.488 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.993e-05/0.07692, allocations: 103.8 kB / 448.5 MB, free: 8.387 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.07692, allocations: 0 / 448.5 MB, free: 8.387 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002948/0.07722, allocations: 27.91 kB / 448.5 MB, free: 8.359 MB / 298.7 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.0005315/0.07776, allocations: 0.9272 MB / 449.5 MB, free: 7.398 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002739/0.07805, allocations: 124.6 kB / 449.6 MB, free: 7.277 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.07806, allocations: 0 / 449.6 MB, free: 7.277 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.859e-05/0.07815, allocations: 35.92 kB / 449.6 MB, free: 7.242 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004618/0.07862, allocations: 59.88 kB / 449.7 MB, free: 7.184 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001726/0.08036, allocations: 2.084 MB / 451.8 MB, free: 4.926 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001121/0.08049, allocations: 0.7084 MB / 452.5 MB, free: 4.191 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.914e-05/0.08055, allocations: 16.64 kB / 452.5 MB, free: 4.176 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.115e-05/0.0806, allocations: 39.36 kB / 452.5 MB, free: 4.137 MB / 298.7 MB Notification: Performance of SimCode: time 4.21e-07/0.08061, allocations: 0 / 452.5 MB, free: 4.137 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01074/0.09136, allocations: 2.41 MB / 454.9 MB, free: 1.719 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001468/0.09154, allocations: 258.1 kB / 455.2 MB, free: 1.457 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.6/1.691, allocations: 0 / 455.2 MB, free: 1.457 MB / 298.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches