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.001158/0.001158, allocations: 169.9 kB / 16.8 MB, free: 4.988 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.499/1.499, allocations: 205.4 MB / 223 MB, free: 8.926 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.0007043/0.0007045, allocations: 90.34 kB / 271.3 MB, free: 8.227 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.1086/0.1086, allocations: 12.6 MB / 332.2 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003325/0.0003326, allocations: 11.94 kB / 393.3 MB, free: 65.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07197/0.07232, allocations: 50.38 MB / 443.7 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous): time 0.001613/0.07397, allocations: 1.575 MB / 445.3 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006495/0.07465, allocations: 487.8 kB / 445.7 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.37e-05/0.07476, allocations: 3.938 kB / 445.7 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.193e-05/0.07485, allocations: 3.938 kB / 445.7 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.098e-05/0.07492, allocations: 19.84 kB / 445.8 MB, free: 13.33 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001243/0.07505, allocations: 27.97 kB / 445.8 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001269/0.07519, allocations: 99.58 kB / 445.9 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001118/0.07531, allocations: 37.66 kB / 445.9 MB, free: 13.17 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.777e-05/0.07537, allocations: 39.8 kB / 446 MB, free: 13.13 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.914e-05/0.07544, allocations: 39.77 kB / 446 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.69e-05/0.07546, allocations: 4 kB / 446 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.743e-05/0.07549, allocations: 4 kB / 446 MB, free: 13.08 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.965e-05/0.07551, allocations: 11.94 kB / 446 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.804e-05/0.07557, allocations: 69.44 kB / 446.1 MB, free: 13 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.686e-05/0.07566, allocations: 71.78 kB / 446.2 MB, free: 12.93 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.07567, allocations: 0 / 446.2 MB, free: 12.93 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.07568, allocations: 4 kB / 446.2 MB, free: 12.92 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.208e-06/0.07569, allocations: 0 / 446.2 MB, free: 12.92 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.0004078/0.0761, allocations: 395.3 kB / 446.6 MB, free: 12.49 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.261e-05/0.07614, allocations: 8.031 kB / 446.6 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.841e-05/0.07619, allocations: 12.84 kB / 446.6 MB, free: 12.47 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001473/0.07634, allocations: 192.1 kB / 446.8 MB, free: 12.24 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.197e-05/0.07636, allocations: 12.56 kB / 446.8 MB, free: 12.23 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.388e-05/0.07639, allocations: 12.38 kB / 446.8 MB, free: 12.22 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002361/0.07663, allocations: 123.2 kB / 446.9 MB, free: 12.09 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.07665, allocations: 4 kB / 446.9 MB, free: 12.08 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.187e-05/0.07667, allocations: 4 kB / 446.9 MB, free: 12.08 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.169e-06/0.07668, allocations: 0 / 446.9 MB, free: 12.08 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002087/0.0769, allocations: 87.88 kB / 447 MB, free: 11.99 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005037/0.07741, allocations: 0.5362 MB / 447.5 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001718/0.07759, allocations: 82.59 kB / 447.6 MB, free: 11.3 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001019/0.0777, allocations: 44.84 kB / 447.7 MB, free: 11.25 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.388e-06/0.07772, allocations: 3.938 kB / 447.7 MB, free: 11.25 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.243e-05/0.07774, allocations: 34.55 kB / 447.7 MB, free: 11.2 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.07775, allocations: 0 / 447.7 MB, free: 11.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003947/0.07815, allocations: 133.6 kB / 447.8 MB, free: 11.07 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.795e-05/0.07818, allocations: 55.41 kB / 447.9 MB, free: 11 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.978e-05/0.07825, allocations: 131.1 kB / 448 MB, free: 10.86 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.236e-06/0.07827, allocations: 29.7 kB / 448 MB, free: 10.83 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.024e-05/0.07831, allocations: 128 kB / 448.2 MB, free: 10.7 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.771e-05/0.07834, allocations: 27.61 kB / 448.2 MB, free: 10.67 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.639e-06/0.07835, allocations: 0 / 448.2 MB, free: 10.67 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.443e-05/0.0784, allocations: 322.8 kB / 448.5 MB, free: 10.35 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001014/0.0785, allocations: 35.98 kB / 448.5 MB, free: 10.31 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001042/0.07862, allocations: 80.2 kB / 448.6 MB, free: 10.22 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001974/0.07882, allocations: 112.2 kB / 448.7 MB, free: 10.09 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.07883, allocations: 0 / 448.7 MB, free: 10.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000265/0.0791, allocations: 149.5 kB / 448.9 MB, free: 9.941 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.07912, allocations: 8 kB / 448.9 MB, free: 9.934 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.07913, allocations: 0 / 448.9 MB, free: 9.934 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.07915, allocations: 96 / 448.9 MB, free: 9.934 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001511/0.07931, allocations: 39.86 kB / 448.9 MB, free: 9.895 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.612e-06/0.07932, allocations: 4 kB / 448.9 MB, free: 9.891 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.45e-05/0.0794, allocations: 24.02 kB / 448.9 MB, free: 9.867 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.595e-06/0.07942, allocations: 4 kB / 449 MB, free: 9.863 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.961e-05/0.07948, allocations: 118.7 kB / 449.1 MB, free: 9.738 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.641e-05/0.07951, allocations: 7.906 kB / 449.1 MB, free: 9.73 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.876e-05/0.07955, allocations: 20.34 kB / 449.1 MB, free: 9.711 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.07955, allocations: 0 / 449.1 MB, free: 9.711 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.07956, allocations: 4 kB / 449.1 MB, free: 9.707 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.07957, allocations: 0 / 449.1 MB, free: 9.707 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001385/0.07971, allocations: 201.5 kB / 449.3 MB, free: 9.461 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.07972, allocations: 4 kB / 449.3 MB, free: 9.457 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00013/0.07986, allocations: 23.92 kB / 449.3 MB, free: 9.434 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.07987, allocations: 4 kB / 449.3 MB, free: 9.43 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.448e-06/0.07988, allocations: 0 / 449.3 MB, free: 9.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.07989, allocations: 4 kB / 449.3 MB, free: 9.426 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.0799, allocations: 0 / 449.3 MB, free: 9.426 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003383/0.08024, allocations: 251.6 kB / 449.6 MB, free: 9.164 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.31e-05/0.08027, allocations: 84.95 kB / 449.7 MB, free: 9.062 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.873e-05/0.0803, allocations: 8 kB / 449.7 MB, free: 9.055 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.817e-05/0.08039, allocations: 12.03 kB / 449.7 MB, free: 9.043 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.68e-05/0.08044, allocations: 7.984 kB / 449.7 MB, free: 9.035 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.649e-06/0.08045, allocations: 3.938 kB / 449.7 MB, free: 9.031 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.716e-05/0.08049, allocations: 103.8 kB / 449.8 MB, free: 8.93 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.08049, allocations: 3.938 kB / 449.8 MB, free: 8.926 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002195/0.08072, allocations: 20 kB / 449.8 MB, free: 8.906 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 (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.41e-05/0.0808, allocations: 95.25 kB / 449.9 MB, free: 8.801 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002478/0.08105, allocations: 87.89 kB / 450 MB, free: 8.715 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.08106, allocations: 0 / 450 MB, free: 8.715 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.976e-05/0.08117, allocations: 44.28 kB / 450 MB, free: 8.672 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003472/0.08152, allocations: 27.92 kB / 450.1 MB, free: 8.645 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000579/0.08211, allocations: 472.9 kB / 450.5 MB, free: 8.148 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001112/0.08224, allocations: 0.7004 MB / 451.2 MB, free: 7.422 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.274e-05/0.08228, allocations: 11.44 kB / 451.2 MB, free: 7.41 MB / 298.7 MB Notification: Performance of SimCode: time 7.22e-07/0.08228, allocations: 192 / 451.2 MB, free: 7.41 MB / 298.7 MB Notification: Performance of Templates: time 0.002239/0.08453, allocations: 1.256 MB / 452.5 MB, free: 6.152 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