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.001547/0.001547, allocations: 174.2 kB / 16.8 MB, free: 5.012 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.509/1.509, allocations: 205.4 MB / 222.9 MB, free: 9.035 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.0007308/0.0007307, allocations: 94.11 kB / 271.3 MB, free: 8.25 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.06614/0.06614, allocations: 12.59 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003587/0.0003588, allocations: 12 kB / 393.3 MB, free: 65.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08351/0.08389, allocations: 50.38 MB / 443.7 MB, free: 15.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002192/0.08613, allocations: 1.704 MB / 445.4 MB, free: 13.72 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008725/0.08703, allocations: 0.523 MB / 445.9 MB, free: 13.19 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001594/0.08722, allocations: 4 kB / 445.9 MB, free: 13.19 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001285/0.08737, allocations: 7.922 kB / 445.9 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.705e-05/0.08747, allocations: 27.78 kB / 446 MB, free: 13.15 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003733/0.08786, allocations: 47.95 kB / 446 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002099/0.08808, allocations: 115.6 kB / 446.1 MB, free: 12.99 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001783/0.08826, allocations: 44.89 kB / 446.2 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.398e-05/0.08836, allocations: 39.78 kB / 446.2 MB, free: 12.91 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.926e-05/0.08845, allocations: 47.72 kB / 446.2 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.886e-05/0.08849, allocations: 4 kB / 446.2 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.989e-05/0.08851, allocations: 4 kB / 446.3 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.311e-05/0.08855, allocations: 19.92 kB / 446.3 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.976e-05/0.08864, allocations: 81.36 kB / 446.4 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001319/0.08878, allocations: 84.05 kB / 446.4 MB, free: 12.67 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.08879, allocations: 0 / 446.4 MB, free: 12.67 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.0888, allocations: 0 / 446.4 MB, free: 12.67 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.08881, allocations: 0 / 446.4 MB, free: 12.67 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.000575/0.08939, allocations: 415.1 kB / 446.8 MB, free: 12.21 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.08945, allocations: 8.031 kB / 446.8 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.233e-05/0.08952, allocations: 16.75 kB / 446.9 MB, free: 12.19 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002045/0.08973, allocations: 204.1 kB / 447.1 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.566e-05/0.08975, allocations: 8.375 kB / 447.1 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.198e-05/0.08979, allocations: 12.38 kB / 447.1 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004945/0.09029, allocations: 242.9 kB / 447.3 MB, free: 11.67 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.726e-05/0.09032, allocations: 4 kB / 447.3 MB, free: 11.67 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.784e-05/0.09035, allocations: 8 kB / 447.3 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.521e-06/0.09036, allocations: 3.938 kB / 447.3 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000243/0.09061, allocations: 95.86 kB / 447.4 MB, free: 11.56 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005476/0.09116, allocations: 0.5998 MB / 448 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002564/0.09143, allocations: 159.9 kB / 448.2 MB, free: 10.7 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001386/0.09159, allocations: 82.64 kB / 448.3 MB, free: 10.61 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.54e-05/0.09162, allocations: 4 kB / 448.3 MB, free: 10.61 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.662e-05/0.09164, allocations: 34.5 kB / 448.3 MB, free: 10.57 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.553e-06/0.09165, allocations: 0 / 448.3 MB, free: 10.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.000484/0.09214, allocations: 197.3 kB / 448.5 MB, free: 10.37 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.581e-05/0.0922, allocations: 114.8 kB / 448.6 MB, free: 10.23 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.673e-05/0.09228, allocations: 127.6 kB / 448.7 MB, free: 10.1 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.344e-05/0.0923, allocations: 29.7 kB / 448.8 MB, free: 10.06 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.545e-05/0.09235, allocations: 115.9 kB / 448.9 MB, free: 9.945 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.02e-05/0.09238, allocations: 23.7 kB / 448.9 MB, free: 9.922 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.312e-06/0.09239, allocations: 4 kB / 448.9 MB, free: 9.918 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.688e-05/0.09244, allocations: 322.8 kB / 449.2 MB, free: 9.594 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001068/0.09256, allocations: 39.97 kB / 449.3 MB, free: 9.555 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001317/0.0927, allocations: 144.7 kB / 449.4 MB, free: 9.367 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000261/0.09296, allocations: 192.7 kB / 449.6 MB, free: 9.133 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.09298, allocations: 4 kB / 449.6 MB, free: 9.129 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003309/0.09331, allocations: 193.2 kB / 449.8 MB, free: 8.934 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.885e-05/0.09334, allocations: 8 kB / 449.8 MB, free: 8.926 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.09335, allocations: 4 kB / 449.8 MB, free: 8.922 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.139e-05/0.09338, allocations: 7.938 kB / 449.8 MB, free: 8.914 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001675/0.09355, allocations: 44.34 kB / 449.8 MB, free: 8.871 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.002e-05/0.09357, allocations: 8 kB / 449.8 MB, free: 8.863 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.98e-05/0.09368, allocations: 28.2 kB / 449.9 MB, free: 8.836 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.148e-05/0.0937, allocations: 8 kB / 449.9 MB, free: 8.828 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.584e-05/0.09378, allocations: 130.6 kB / 450 MB, free: 8.691 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001229/0.09391, allocations: 89.47 kB / 450.1 MB, free: 8.598 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.517e-05/0.09395, allocations: 20.66 kB / 450.1 MB, free: 8.578 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.09396, allocations: 0 / 450.1 MB, free: 8.578 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.09397, allocations: 0 / 450.1 MB, free: 8.578 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.399e-06/0.09398, allocations: 11.98 kB / 450.1 MB, free: 8.566 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002139/0.0942, allocations: 197.5 kB / 450.3 MB, free: 8.324 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.09421, allocations: 3.984 kB / 450.3 MB, free: 8.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001619/0.09438, allocations: 31.98 kB / 450.4 MB, free: 8.289 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.958e-06/0.09439, allocations: 4 kB / 450.4 MB, free: 8.285 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.496e-05/0.09441, allocations: 8.172 kB / 450.4 MB, free: 8.277 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.09442, allocations: 7.875 kB / 450.4 MB, free: 8.27 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.09442, allocations: 4 kB / 450.4 MB, free: 8.266 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004378/0.09487, allocations: 387.5 kB / 450.8 MB, free: 7.867 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.545e-05/0.0949, allocations: 88.98 kB / 450.8 MB, free: 7.762 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.988e-05/0.09493, allocations: 7.938 kB / 450.9 MB, free: 7.754 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001228/0.09506, allocations: 11.98 kB / 450.9 MB, free: 7.742 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.599e-05/0.0951, allocations: 4 kB / 450.9 MB, free: 7.738 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.486e-06/0.09511, allocations: 4 kB / 450.9 MB, free: 7.734 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.927e-05/0.09516, allocations: 107.7 kB / 451 MB, free: 7.629 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09516, allocations: 0 / 451 MB, free: 7.629 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002893/0.09546, allocations: 31.97 kB / 451 MB, free: 7.598 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 7.486e-05/0.09554, allocations: 99.23 kB / 451.1 MB, free: 7.488 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003473/0.09589, allocations: 128.6 kB / 451.2 MB, free: 7.363 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.09591, allocations: 0 / 451.2 MB, free: 7.363 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.929e-05/0.09602, allocations: 31.98 kB / 451.3 MB, free: 7.332 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004892/0.09651, allocations: 55.94 kB / 451.3 MB, free: 7.277 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006303/0.09715, allocations: 0.5037 MB / 451.8 MB, free: 6.734 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001319/0.0973, allocations: 0.7125 MB / 452.5 MB, free: 5.996 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.036e-05/0.09735, allocations: 11.44 kB / 452.5 MB, free: 5.984 MB / 298.7 MB Notification: Performance of SimCode: time 6.32e-07/0.09735, allocations: 0 / 452.5 MB, free: 5.984 MB / 298.7 MB Notification: Performance of Templates: time 0.002678/0.1, allocations: 1.475 MB / 454 MB, free: 4.512 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