Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.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.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001241/0.001241, allocations: 183.9 kB / 16.45 MB, free: 5.656 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.29/1.29, allocations: 205.4 MB / 222.6 MB, free: 9.109 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.0007184/0.0007185, allocations: 98.28 kB / 270.9 MB, free: 8.344 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.08228/0.08228, allocations: 12.6 MB / 331.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004126/0.0004126, allocations: 12 kB / 392.6 MB, free: 66.24 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08604/0.08647, allocations: 50.38 MB / 443 MB, free: 15.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous): time 0.001864/0.08838, allocations: 1.54 MB / 444.6 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007515/0.08917, allocations: 480 kB / 445 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00011/0.08931, allocations: 0 / 445 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.345e-05/0.08941, allocations: 7.922 kB / 445 MB, free: 13.76 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.39e-05/0.08947, allocations: 23.8 kB / 445.1 MB, free: 13.74 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001395/0.08962, allocations: 23.97 kB / 445.1 MB, free: 13.71 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001081/0.08974, allocations: 91.66 kB / 445.2 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001256/0.08987, allocations: 33.48 kB / 445.2 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.979e-05/0.08994, allocations: 35.86 kB / 445.2 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.964e-05/0.09, allocations: 39.78 kB / 445.3 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.098e-05/0.09003, allocations: 4 kB / 445.3 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.894e-05/0.09006, allocations: 8 kB / 445.3 MB, free: 13.51 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.489e-05/0.09008, allocations: 11.92 kB / 445.3 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.622e-05/0.09011, allocations: 37.7 kB / 445.3 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.689e-05/0.0902, allocations: 76 kB / 445.4 MB, free: 13.38 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.09021, allocations: 4 kB / 445.4 MB, free: 13.38 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.09022, allocations: 0 / 445.4 MB, free: 13.38 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.09023, allocations: 0 / 445.4 MB, free: 13.38 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0004698/0.09071, allocations: 395.2 kB / 445.8 MB, free: 12.94 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.09075, allocations: 12.02 kB / 445.8 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.486e-05/0.09079, allocations: 15.84 kB / 445.8 MB, free: 12.91 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001502/0.09095, allocations: 190.8 kB / 446 MB, free: 12.69 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.305e-05/0.09097, allocations: 8.188 kB / 446 MB, free: 12.68 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.863e-05/0.091, allocations: 8 kB / 446 MB, free: 12.67 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002485/0.09126, allocations: 124.7 kB / 446.2 MB, free: 12.54 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.09128, allocations: 0 / 446.2 MB, free: 12.54 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.209e-05/0.09129, allocations: 4 kB / 446.2 MB, free: 12.54 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.0913, allocations: 4 kB / 446.2 MB, free: 12.53 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002098/0.09152, allocations: 83.88 kB / 446.2 MB, free: 12.45 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005749/0.0921, allocations: 0.5248 MB / 446.8 MB, free: 11.86 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001798/0.0923, allocations: 82.59 kB / 446.9 MB, free: 11.77 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001048/0.09241, allocations: 40.84 kB / 446.9 MB, free: 11.72 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.404e-05/0.09243, allocations: 4 kB / 446.9 MB, free: 11.72 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.512e-05/0.09245, allocations: 34.56 kB / 446.9 MB, free: 11.68 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 1.332e-06/0.09246, allocations: 0 / 446.9 MB, free: 11.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003817/0.09285, allocations: 149.6 kB / 447.1 MB, free: 11.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.504e-05/0.09288, allocations: 51.41 kB / 447.1 MB, free: 11.46 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.118e-05/0.09296, allocations: 127.2 kB / 447.3 MB, free: 11.33 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.809e-06/0.09298, allocations: 33.64 kB / 447.3 MB, free: 11.29 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.356e-05/0.09303, allocations: 119.8 kB / 447.4 MB, free: 11.17 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.88e-05/0.09305, allocations: 27.64 kB / 447.4 MB, free: 11.14 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.579e-06/0.09306, allocations: 0 / 447.4 MB, free: 11.14 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.166e-05/0.09312, allocations: 322.8 kB / 447.7 MB, free: 10.82 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001041/0.09323, allocations: 39.97 kB / 447.8 MB, free: 10.78 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001076/0.09334, allocations: 68.27 kB / 447.8 MB, free: 10.7 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001118/0.09346, allocations: 47.92 kB / 447.9 MB, free: 10.65 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.09347, allocations: 0 / 447.9 MB, free: 10.65 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002634/0.09374, allocations: 149.5 kB / 448 MB, free: 10.5 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.09376, allocations: 4 kB / 448 MB, free: 10.49 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.09378, allocations: 4 kB / 448 MB, free: 10.49 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.0938, allocations: 96 / 448 MB, free: 10.49 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001582/0.09396, allocations: 39.91 kB / 448.1 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.182e-06/0.09398, allocations: 3.938 kB / 448.1 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.973e-05/0.09406, allocations: 23.94 kB / 448.1 MB, free: 10.42 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.244e-06/0.09407, allocations: 0 / 448.1 MB, free: 10.42 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 6.656e-05/0.09415, allocations: 134.4 kB / 448.2 MB, free: 10.28 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.715e-05/0.09418, allocations: 7.906 kB / 448.3 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.994e-05/0.09421, allocations: 8.375 kB / 448.3 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.09422, allocations: 0 / 448.3 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.09423, allocations: 7.984 kB / 448.3 MB, free: 10.26 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.09424, allocations: 4 kB / 448.3 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000139/0.09438, allocations: 193.6 kB / 448.5 MB, free: 10.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.09439, allocations: 8 kB / 448.5 MB, free: 10.01 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001346/0.09453, allocations: 23.92 kB / 448.5 MB, free: 9.984 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.09454, allocations: 0 / 448.5 MB, free: 9.984 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.124e-05/0.09456, allocations: 8 kB / 448.5 MB, free: 9.977 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.09457, allocations: 0 / 448.5 MB, free: 9.977 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.09457, allocations: 0 / 448.5 MB, free: 9.977 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003661/0.09494, allocations: 255.4 kB / 448.8 MB, free: 9.711 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.65e-05/0.09498, allocations: 84.95 kB / 448.8 MB, free: 9.609 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.697e-05/0.095, allocations: 0 / 448.8 MB, free: 9.609 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.99e-05/0.0951, allocations: 12 kB / 448.8 MB, free: 9.598 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.576e-05/0.09515, allocations: 11.98 kB / 448.9 MB, free: 9.586 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.34e-06/0.09516, allocations: 0 / 448.9 MB, free: 9.586 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.288e-05/0.09521, allocations: 103.7 kB / 449 MB, free: 9.484 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09522, allocations: 0 / 449 MB, free: 9.484 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002237/0.09544, allocations: 23.91 kB / 449 MB, free: 9.461 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (load.phi,load.w,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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 9.356e-05/0.09554, allocations: 95.19 kB / 449.1 MB, free: 9.355 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002575/0.09581, allocations: 95.88 kB / 449.2 MB, free: 9.262 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.09582, allocations: 0 / 449.2 MB, free: 9.262 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.864e-05/0.09592, allocations: 36.23 kB / 449.2 MB, free: 9.227 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003442/0.09628, allocations: 24.48 kB / 449.2 MB, free: 9.203 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006014/0.09689, allocations: 461 kB / 449.7 MB, free: 8.719 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001242/0.09702, allocations: 0.7004 MB / 450.4 MB, free: 7.992 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.331e-05/0.09706, allocations: 11.44 kB / 450.4 MB, free: 7.98 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.09707, allocations: 192 / 450.4 MB, free: 7.98 MB / 298.7 MB Notification: Performance of Templates: time 0.002473/0.09955, allocations: 1.261 MB / 451.7 MB, free: 6.719 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches