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: 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/Complex 3.2.3+maint.om/package.mo): time 0.0009545/0.0009546, allocations: 175.3 kB / 16.45 MB, free: 5.684 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.345/1.345, allocations: 205.4 MB / 222.6 MB, free: 9.105 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.000774/0.0007739, allocations: 96.72 kB / 270.9 MB, free: 8.355 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.07197/0.07197, allocations: 12.58 MB / 331.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004263/0.0004264, allocations: 20 kB / 392.7 MB, free: 66.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08871/0.08917, allocations: 50.37 MB / 443 MB, free: 15.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002161/0.09138, allocations: 1.653 MB / 444.7 MB, free: 14.13 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008489/0.09227, allocations: 0.5233 MB / 445.2 MB, free: 13.6 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001285/0.09243, allocations: 3.938 kB / 445.2 MB, free: 13.6 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001106/0.09255, allocations: 11.92 kB / 445.2 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.931e-05/0.09263, allocations: 15.84 kB / 445.2 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000319/0.09296, allocations: 51.89 kB / 445.3 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001602/0.09312, allocations: 115.6 kB / 445.4 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001486/0.09328, allocations: 44.88 kB / 445.4 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.964e-05/0.09339, allocations: 35.86 kB / 445.5 MB, free: 13.33 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.175e-05/0.09347, allocations: 47.75 kB / 445.5 MB, free: 13.28 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.608e-05/0.09351, allocations: 4 kB / 445.5 MB, free: 13.28 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.056e-05/0.09353, allocations: 4 kB / 445.5 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.185e-05/0.09356, allocations: 15.94 kB / 445.5 MB, free: 13.26 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.685e-05/0.09361, allocations: 45.64 kB / 445.6 MB, free: 13.21 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001291/0.09375, allocations: 88.03 kB / 445.7 MB, free: 13.12 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.193e-06/0.09377, allocations: 4 kB / 445.7 MB, free: 13.12 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.216e-06/0.09378, allocations: 0 / 445.7 MB, free: 13.12 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.855e-06/0.09379, allocations: 0 / 445.7 MB, free: 13.12 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.0006623/0.09446, allocations: 410.9 kB / 446.1 MB, free: 12.67 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.09452, allocations: 8.031 kB / 446.1 MB, free: 12.66 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.043e-05/0.09458, allocations: 19.81 kB / 446.1 MB, free: 12.64 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001928/0.09478, allocations: 202.9 kB / 446.3 MB, free: 12.4 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.936e-05/0.09481, allocations: 15.94 kB / 446.3 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.777e-05/0.09486, allocations: 23.83 kB / 446.3 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004648/0.09533, allocations: 234.5 kB / 446.6 MB, free: 12.11 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.516e-05/0.09535, allocations: 0 / 446.6 MB, free: 12.11 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.663e-05/0.09538, allocations: 8 kB / 446.6 MB, free: 12.1 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/0.09539, allocations: 0 / 446.6 MB, free: 12.1 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002452/0.09564, allocations: 99.88 kB / 446.7 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005216/0.09617, allocations: 0.5921 MB / 447.3 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002576/0.09644, allocations: 151.9 kB / 447.4 MB, free: 11.16 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001404/0.09659, allocations: 86.58 kB / 447.5 MB, free: 11.07 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.506e-05/0.09662, allocations: 0 / 447.5 MB, free: 11.07 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.946e-05/0.09665, allocations: 46.55 kB / 447.6 MB, free: 11.01 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 9.62e-07/0.09666, allocations: 0 / 447.6 MB, free: 11.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004664/0.09713, allocations: 189.6 kB / 447.7 MB, free: 10.82 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.432e-05/0.09718, allocations: 110.8 kB / 447.8 MB, free: 10.69 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.479e-05/0.09727, allocations: 131.6 kB / 448 MB, free: 10.55 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.219e-05/0.09729, allocations: 29.7 kB / 448 MB, free: 10.52 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.273e-05/0.09734, allocations: 111.9 kB / 448.1 MB, free: 10.4 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.233e-05/0.09737, allocations: 27.69 kB / 448.1 MB, free: 10.38 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.62e-06/0.09738, allocations: 7.938 kB / 448.1 MB, free: 10.37 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.278e-05/0.09744, allocations: 314.8 kB / 448.5 MB, free: 10.05 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001147/0.09756, allocations: 51.95 kB / 448.5 MB, free: 10 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000133/0.0977, allocations: 136.8 kB / 448.6 MB, free: 9.82 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000125/0.09783, allocations: 59.91 kB / 448.7 MB, free: 9.762 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.09784, allocations: 0 / 448.7 MB, free: 9.762 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003174/0.09817, allocations: 197.2 kB / 448.9 MB, free: 9.562 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.723e-05/0.09822, allocations: 8.438 kB / 448.9 MB, free: 9.555 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.09824, allocations: 8.375 kB / 448.9 MB, free: 9.547 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.09826, allocations: 4 kB / 448.9 MB, free: 9.543 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001671/0.09843, allocations: 51.91 kB / 449 MB, free: 9.492 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.09845, allocations: 4 kB / 449 MB, free: 9.488 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.838e-05/0.09856, allocations: 19.78 kB / 449 MB, free: 9.469 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.207e-05/0.09858, allocations: 16 kB / 449 MB, free: 9.453 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.94e-05/0.09866, allocations: 137.7 kB / 449.1 MB, free: 9.309 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001163/0.09879, allocations: 89.44 kB / 449.2 MB, free: 9.215 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.812e-05/0.09883, allocations: 12.72 kB / 449.2 MB, free: 9.203 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.09884, allocations: 0 / 449.2 MB, free: 9.203 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/0.09885, allocations: 3.938 kB / 449.2 MB, free: 9.199 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.576e-06/0.09886, allocations: 4 kB / 449.2 MB, free: 9.195 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002101/0.09907, allocations: 205.6 kB / 449.4 MB, free: 8.945 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.09908, allocations: 0 / 449.4 MB, free: 8.945 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001574/0.09925, allocations: 35.97 kB / 449.5 MB, free: 8.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.09926, allocations: 4 kB / 449.5 MB, free: 8.906 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.213e-05/0.09928, allocations: 4 kB / 449.5 MB, free: 8.902 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.09928, allocations: 3.938 kB / 449.5 MB, free: 8.898 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.09929, allocations: 4 kB / 449.5 MB, free: 8.895 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000457/0.09975, allocations: 388.1 kB / 449.9 MB, free: 8.496 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.998e-05/0.09979, allocations: 92.86 kB / 450 MB, free: 8.387 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.932e-05/0.09982, allocations: 3.984 kB / 450 MB, free: 8.383 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001241/0.09995, allocations: 12 kB / 450 MB, free: 8.371 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.045e-05/0.1, allocations: 8.047 kB / 450 MB, free: 8.363 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.353e-06/0.1, allocations: 4 kB / 450 MB, free: 8.359 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.391e-05/0.1001, allocations: 107.1 kB / 450.1 MB, free: 8.254 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1001, allocations: 0 / 450.1 MB, free: 8.254 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002746/0.1003, allocations: 24 kB / 450.1 MB, free: 8.23 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001031/0.1005, allocations: 99.19 kB / 450.2 MB, free: 8.121 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002884/0.1007, allocations: 123.8 kB / 450.3 MB, free: 8 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1008, allocations: 0 / 450.3 MB, free: 8 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.151e-05/0.1009, allocations: 40.84 kB / 450.4 MB, free: 7.961 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000461/0.1013, allocations: 52.28 kB / 450.4 MB, free: 7.91 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006093/0.1019, allocations: 0.4955 MB / 450.9 MB, free: 7.375 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001439/0.1021, allocations: 0.7164 MB / 451.6 MB, free: 6.633 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.806e-05/0.1021, allocations: 15.44 kB / 451.7 MB, free: 6.617 MB / 298.7 MB Notification: Performance of SimCode: time 3.7e-07/0.1022, allocations: 0 / 451.7 MB, free: 6.617 MB / 298.7 MB Notification: Performance of Templates: time 0.002722/0.1049, allocations: 1.458 MB / 453.1 MB, free: 5.16 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (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) 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