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/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.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008411/0.0008412, allocations: 103 kB / 16.07 MB, free: 32 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.0007277/0.0007277, allocations: 183.9 kB / 16.96 MB, free: 6.656 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.155/1.155, allocations: 205.4 MB / 223.1 MB, free: 5.754 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.06134/0.06134, allocations: 12.6 MB / 284 MB, free: 8.816 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.000659/0.000659, allocations: 20 kB / 345.2 MB, free: 20.93 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06792/0.06859, allocations: 50.39 MB / 395.5 MB, free: 2.457 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.001973/0.07058, allocations: 1.692 MB / 397.2 MB, free: 0.75 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007639/0.07137, allocations: 0.5269 MB / 397.8 MB, free: 220 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.822e-05/0.07148, allocations: 4 kB / 397.8 MB, free: 216 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.192e-05/0.07157, allocations: 15.86 kB / 397.8 MB, free: 200 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.109e-05/0.07163, allocations: 19.84 kB / 397.8 MB, free: 180 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000258/0.0719, allocations: 47.89 kB / 397.9 MB, free: 132 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001345/0.07204, allocations: 119.6 kB / 398 MB, free: 12 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001318/0.07218, allocations: 52.95 kB / 398 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.921e-05/0.07226, allocations: 39.8 kB / 398.1 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.642e-05/0.07233, allocations: 39.78 kB / 398.1 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.102e-05/0.07236, allocations: 7.984 kB / 398.1 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.435e-05/0.07238, allocations: 8 kB / 398.1 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.285e-05/0.07241, allocations: 15.92 kB / 398.1 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.246e-05/0.07248, allocations: 77.38 kB / 398.2 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001236/0.07261, allocations: 119.8 kB / 398.3 MB, free: 15.65 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.07262, allocations: 0 / 398.3 MB, free: 15.65 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.07263, allocations: 0 / 398.3 MB, free: 15.65 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.516e-06/0.07263, allocations: 0 / 398.3 MB, free: 15.65 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0004694/0.07311, allocations: 414.9 kB / 398.7 MB, free: 15.2 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.11e-05/0.07315, allocations: 8.031 kB / 398.7 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.838e-05/0.07319, allocations: 24.73 kB / 398.8 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001718/0.07337, allocations: 204.2 kB / 399 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.739e-06/0.07339, allocations: 8.312 kB / 399 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.587e-05/0.07343, allocations: 12.38 kB / 399 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004247/0.07386, allocations: 238.9 kB / 399.2 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.07388, allocations: 0 / 399.2 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.45e-05/0.0739, allocations: 8 kB / 399.2 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.07391, allocations: 0 / 399.2 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002429/0.07416, allocations: 103.9 kB / 399.3 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005325/0.0747, allocations: 0.5881 MB / 399.9 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002518/0.07496, allocations: 151.9 kB / 400.1 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001499/0.07512, allocations: 82.56 kB / 400.1 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.16e-05/0.07516, allocations: 4 kB / 400.1 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.41e-05/0.07519, allocations: 42.55 kB / 400.2 MB, free: 13.56 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.413e-06/0.07519, allocations: 0 / 400.2 MB, free: 13.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004839/0.07568, allocations: 197.4 kB / 400.4 MB, free: 13.36 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.537e-05/0.07575, allocations: 110.8 kB / 400.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.075e-05/0.07584, allocations: 138.1 kB / 400.6 MB, free: 13.08 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.401e-05/0.07587, allocations: 25.7 kB / 400.6 MB, free: 13.05 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.144e-05/0.07592, allocations: 111.8 kB / 400.8 MB, free: 12.94 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.317e-05/0.07595, allocations: 23.7 kB / 400.8 MB, free: 12.91 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.322e-05/0.07599, allocations: 29.66 kB / 400.8 MB, free: 12.88 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.213e-05/0.07608, allocations: 318.8 kB / 401.1 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001146/0.0762, allocations: 48 kB / 401.2 MB, free: 12.51 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001487/0.07636, allocations: 132.8 kB / 401.3 MB, free: 12.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002686/0.07663, allocations: 192.8 kB / 401.5 MB, free: 12.1 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.07665, allocations: 7.938 kB / 401.5 MB, free: 12.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003454/0.077, allocations: 193.6 kB / 401.7 MB, free: 11.9 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.07702, allocations: 12.06 kB / 401.7 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.07703, allocations: 0 / 401.7 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.576e-05/0.07705, allocations: 11.94 kB / 401.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001545/0.07721, allocations: 43.91 kB / 401.7 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.013e-05/0.07723, allocations: 11.94 kB / 401.8 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001009/0.07734, allocations: 23.83 kB / 401.8 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.144e-05/0.07736, allocations: 8 kB / 401.8 MB, free: 11.79 MB / 302.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 9.505e-05/0.07746, allocations: 133.7 kB / 401.9 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001239/0.07759, allocations: 81.59 kB / 402 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.871e-05/0.07763, allocations: 20.66 kB / 402 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.07764, allocations: 0 / 402 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.07765, allocations: 3.984 kB / 402 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.07766, allocations: 8 kB / 402 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00023/0.0779, allocations: 201.5 kB / 402.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.07791, allocations: 0 / 402.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001609/0.07807, allocations: 40.39 kB / 402.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.07809, allocations: 0 / 402.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.406e-05/0.0781, allocations: 11.94 kB / 402.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.07811, allocations: 0 / 402.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.07812, allocations: 0 / 402.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004587/0.07858, allocations: 391.4 kB / 402.7 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.949e-05/0.07863, allocations: 88.98 kB / 402.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.013e-05/0.07866, allocations: 7.938 kB / 402.8 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001468/0.07881, allocations: 16.05 kB / 402.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.07e-05/0.07885, allocations: 4 kB / 402.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.616e-06/0.07886, allocations: 8 kB / 402.8 MB, free: 10.69 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.844e-05/0.07892, allocations: 95.27 kB / 402.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.07892, allocations: 0 / 402.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003018/0.07923, allocations: 27.91 kB / 402.9 MB, free: 10.57 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 (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 7.94e-05/0.07931, allocations: 99.23 kB / 403 MB, free: 10.46 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002939/0.07962, allocations: 127.8 kB / 403.1 MB, free: 10.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.07963, allocations: 0.875 kB / 403.1 MB, free: 10.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.907e-05/0.07973, allocations: 43.91 kB / 403.2 MB, free: 10.29 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000454/0.08019, allocations: 48.14 kB / 403.2 MB, free: 10.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006054/0.08081, allocations: 493.6 kB / 403.7 MB, free: 9.73 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002179/0.08104, allocations: 0.7125 MB / 404.4 MB, free: 8.992 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.325e-05/0.08109, allocations: 12.64 kB / 404.4 MB, free: 8.98 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.045e-05/0.08113, allocations: 15.44 kB / 404.4 MB, free: 8.965 MB / 302.1 MB Notification: Performance of SimCode: time 4.71e-07/0.08113, allocations: 0 / 404.4 MB, free: 8.965 MB / 302.1 MB Notification: Performance of Templates: time 0.00293/0.08407, allocations: 1.055 MB / 405.5 MB, free: 7.914 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile Environment - environmentSimulation: (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 & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/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