Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.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 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 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 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: translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007251/0.0007251, allocations: 96.16 kB / 16.06 MB, free: 40 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007702/0.0007702, allocations: 184 kB / 16.96 MB, free: 6.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.205/1.205, allocations: 205.4 MB / 223.1 MB, free: 5.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06036/0.06036, allocations: 12.6 MB / 284 MB, free: 8.598 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006549/0.0006549, allocations: 20 kB / 345.2 MB, free: 20.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07147/0.07213, allocations: 50.39 MB / 395.6 MB, free: 2.43 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.002063/0.07424, allocations: 1.7 MB / 397.3 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008403/0.0751, allocations: 0.5464 MB / 397.8 MB, free: 164 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.69e-05/0.07522, allocations: 7.938 kB / 397.8 MB, free: 156 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.22e-05/0.07531, allocations: 7.922 kB / 397.8 MB, free: 148 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001398/0.07546, allocations: 31.77 kB / 397.8 MB, free: 116 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002218/0.07569, allocations: 39.97 kB / 397.9 MB, free: 76 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000167/0.07586, allocations: 127.6 kB / 398 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001211/0.07599, allocations: 45.02 kB / 398.1 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.191e-05/0.07607, allocations: 43.73 kB / 398.1 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.878e-05/0.07614, allocations: 39.78 kB / 398.1 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.195e-05/0.07617, allocations: 4 kB / 398.1 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.501e-05/0.07619, allocations: 4 kB / 398.1 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.793e-05/0.07623, allocations: 27.84 kB / 398.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.908e-05/0.0763, allocations: 77.44 kB / 398.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001268/0.07643, allocations: 111.8 kB / 398.4 MB, free: 15.6 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.07644, allocations: 0 / 398.4 MB, free: 15.6 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.07645, allocations: 0 / 398.4 MB, free: 15.6 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.376e-06/0.07646, allocations: 0 / 398.4 MB, free: 15.6 MB / 302.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.0005211/0.07699, allocations: 419.1 kB / 398.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.07703, allocations: 8.031 kB / 398.8 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.203e-05/0.07708, allocations: 20.75 kB / 398.8 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001857/0.07727, allocations: 200.1 kB / 399 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.342e-05/0.07729, allocations: 8.375 kB / 399 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.925e-05/0.07732, allocations: 12.38 kB / 399 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004702/0.0778, allocations: 262.8 kB / 399.3 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.07783, allocations: 3.906 kB / 399.3 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.463e-05/0.07785, allocations: 4 kB / 399.3 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.07786, allocations: 7.984 kB / 399.3 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002457/0.07811, allocations: 95.88 kB / 399.4 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005842/0.07871, allocations: 0.5959 MB / 400 MB, free: 13.8 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003218/0.07904, allocations: 148 kB / 400.1 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001538/0.07921, allocations: 90.47 kB / 400.2 MB, free: 13.53 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.079e-05/0.07924, allocations: 4 kB / 400.2 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.249e-05/0.07926, allocations: 34.5 kB / 400.2 MB, free: 13.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.272e-06/0.07927, allocations: 0 / 400.2 MB, free: 13.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.000522/0.0798, allocations: 201.4 kB / 400.4 MB, free: 13.28 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.11e-05/0.07988, allocations: 118.9 kB / 400.6 MB, free: 13.14 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.068e-05/0.07998, allocations: 130.1 kB / 400.7 MB, free: 13 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.217e-05/0.08001, allocations: 25.7 kB / 400.7 MB, free: 12.97 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.365e-05/0.08008, allocations: 115.9 kB / 400.8 MB, free: 12.85 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.35e-05/0.08011, allocations: 23.7 kB / 400.8 MB, free: 12.83 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.193e-05/0.08014, allocations: 25.7 kB / 400.9 MB, free: 12.8 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.08025, allocations: 318.8 kB / 401.2 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001134/0.08037, allocations: 47.97 kB / 401.2 MB, free: 12.43 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001628/0.08054, allocations: 141.6 kB / 401.4 MB, free: 12.24 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002848/0.08084, allocations: 201.5 kB / 401.6 MB, free: 12 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.08085, allocations: 0 / 401.6 MB, free: 12 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003624/0.08122, allocations: 209.6 kB / 401.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.08125, allocations: 9.312 kB / 401.8 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.08126, allocations: 4 kB / 401.8 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.08128, allocations: 8 kB / 401.8 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001396/0.08143, allocations: 47.91 kB / 401.8 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.074e-05/0.08145, allocations: 8.312 kB / 401.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.969e-05/0.08155, allocations: 23.89 kB / 401.9 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.078e-05/0.08157, allocations: 8 kB / 401.9 MB, free: 11.68 MB / 302.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 9.845e-05/0.08167, allocations: 133.7 kB / 402 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001319/0.08181, allocations: 89.47 kB / 402.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.054e-05/0.08191, allocations: 20.7 kB / 402.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.08192, allocations: 7.938 kB / 402.1 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.08193, allocations: 0 / 402.1 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.08194, allocations: 240 / 402.1 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002422/0.08219, allocations: 213.4 kB / 402.3 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.0822, allocations: 8 kB / 402.3 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001712/0.08237, allocations: 39.97 kB / 402.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.08239, allocations: 3.984 kB / 402.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.47e-05/0.08241, allocations: 8 kB / 402.4 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.055e-06/0.08242, allocations: 0 / 402.4 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.08242, allocations: 3.938 kB / 402.4 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004982/0.08292, allocations: 391.4 kB / 402.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.956e-05/0.08298, allocations: 96.88 kB / 402.9 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.114e-05/0.08301, allocations: 4 kB / 402.9 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001299/0.08315, allocations: 12.06 kB / 402.9 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.472e-05/0.08319, allocations: 11.98 kB / 402.9 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.754e-06/0.0832, allocations: 4 kB / 402.9 MB, free: 10.55 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.166e-05/0.08326, allocations: 95.97 kB / 403 MB, free: 10.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.08326, allocations: 0 / 403 MB, free: 10.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003126/0.08358, allocations: 28 kB / 403 MB, free: 10.43 MB / 302.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 8.396e-05/0.08367, allocations: 95.19 kB / 403.1 MB, free: 10.32 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003033/0.08398, allocations: 140.1 kB / 403.2 MB, free: 10.19 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.084, allocations: 0.9375 kB / 403.2 MB, free: 10.19 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001039/0.0841, allocations: 31.98 kB / 403.3 MB, free: 10.16 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004361/0.08455, allocations: 67.81 kB / 403.3 MB, free: 10.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006292/0.08519, allocations: 482 kB / 403.8 MB, free: 9.586 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002514/0.08545, allocations: 0.7165 MB / 404.5 MB, free: 8.844 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.351e-05/0.0855, allocations: 13.08 kB / 404.5 MB, free: 8.832 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.035e-05/0.08554, allocations: 15.38 kB / 404.6 MB, free: 8.816 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.08555, allocations: 0 / 404.6 MB, free: 8.816 MB / 302.1 MB Notification: Performance of Templates: time 0.00325/0.0888, allocations: 1.081 MB / 405.6 MB, free: 7.738 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile Environment - environmentSimulation: (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches