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.001276/0.001276, allocations: 174.5 kB / 16.76 MB, free: 5.031 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.259/1.259, allocations: 205 MB / 222.5 MB, free: 9.062 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.0008371/0.0008374, allocations: 86.36 kB / 270.5 MB, free: 8.672 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.07563/0.07563, allocations: 12.57 MB / 331 MB, free: 12.07 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000332/0.0003321, allocations: 12 kB / 391.7 MB, free: 66.44 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06736/0.06771, allocations: 49.98 MB / 441.7 MB, free: 16.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous): time 0.001485/0.06923, allocations: 1.591 MB / 443.3 MB, free: 14.81 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005398/0.06978, allocations: 499.7 kB / 443.8 MB, free: 14.31 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.301e-05/0.06987, allocations: 0 / 443.8 MB, free: 14.31 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.259e-05/0.06997, allocations: 7.938 kB / 443.8 MB, free: 14.3 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.89e-05/0.07003, allocations: 19.84 kB / 443.8 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001084/0.07014, allocations: 23.98 kB / 443.8 MB, free: 14.26 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001133/0.07027, allocations: 99.58 kB / 443.9 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001073/0.07038, allocations: 41.64 kB / 443.9 MB, free: 14.12 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.004e-05/0.07044, allocations: 31.8 kB / 444 MB, free: 14.09 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.494e-05/0.0705, allocations: 43.78 kB / 444 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.677e-05/0.07052, allocations: 4 kB / 444 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.575e-05/0.07055, allocations: 4 kB / 444 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.852e-05/0.07057, allocations: 11.94 kB / 444 MB, free: 14.03 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.618e-05/0.07061, allocations: 47.72 kB / 444.1 MB, free: 13.98 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.443e-05/0.07069, allocations: 63.8 kB / 444.1 MB, free: 13.92 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.0707, allocations: 4 kB / 444.2 MB, free: 13.92 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.07071, allocations: 0 / 444.2 MB, free: 13.92 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.589e-06/0.07073, allocations: 4 kB / 444.2 MB, free: 13.91 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.0003864/0.07113, allocations: 391.3 kB / 444.5 MB, free: 13.48 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.969e-05/0.07116, allocations: 12.03 kB / 444.6 MB, free: 13.47 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.047e-05/0.0712, allocations: 8.844 kB / 444.6 MB, free: 13.46 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00012/0.07133, allocations: 200.1 kB / 444.8 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.008e-05/0.07134, allocations: 0.5625 kB / 444.8 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.485e-05/0.07137, allocations: 16.36 kB / 444.8 MB, free: 13.21 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002286/0.07161, allocations: 135.2 kB / 444.9 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.07163, allocations: 3.938 kB / 444.9 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.078e-05/0.07165, allocations: 4 kB / 444.9 MB, free: 13.06 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.07166, allocations: 4 kB / 444.9 MB, free: 13.06 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001989/0.07186, allocations: 79.94 kB / 445 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004753/0.07234, allocations: 0.5362 MB / 445.5 MB, free: 12.38 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001629/0.07252, allocations: 82.53 kB / 445.6 MB, free: 12.29 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.966e-05/0.07263, allocations: 44.84 kB / 445.7 MB, free: 12.24 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.411e-05/0.07265, allocations: 8 kB / 445.7 MB, free: 12.23 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.389e-05/0.07267, allocations: 34.55 kB / 445.7 MB, free: 12.19 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/0.07268, allocations: 0 / 445.7 MB, free: 12.19 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003456/0.07303, allocations: 129.6 kB / 445.8 MB, free: 12.05 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.677e-05/0.07305, allocations: 51.41 kB / 445.9 MB, free: 11.99 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.598e-05/0.07313, allocations: 137.7 kB / 446 MB, free: 11.85 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.655e-06/0.07314, allocations: 29.64 kB / 446 MB, free: 11.81 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.726e-05/0.07318, allocations: 115.8 kB / 446.1 MB, free: 11.7 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.662e-05/0.07321, allocations: 27.61 kB / 446.2 MB, free: 11.67 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.163e-05/0.07323, allocations: 17.72 kB / 446.2 MB, free: 11.64 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.004e-05/0.07328, allocations: 326.8 kB / 446.5 MB, free: 11.32 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001003/0.07338, allocations: 39.97 kB / 446.6 MB, free: 11.28 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.923e-05/0.07349, allocations: 68.27 kB / 446.6 MB, free: 11.2 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001942/0.07369, allocations: 116.2 kB / 446.7 MB, free: 11.07 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.0737, allocations: 0 / 446.7 MB, free: 11.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002497/0.07396, allocations: 141.4 kB / 446.9 MB, free: 10.92 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.102e-05/0.07398, allocations: 8.125 kB / 446.9 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.07399, allocations: 4 kB / 446.9 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.148e-05/0.07401, allocations: 4.094 kB / 446.9 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001483/0.07416, allocations: 39.84 kB / 446.9 MB, free: 10.87 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-06/0.07417, allocations: 4 kB / 446.9 MB, free: 10.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.173e-05/0.07425, allocations: 15.94 kB / 446.9 MB, free: 10.85 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.983e-06/0.07426, allocations: 4 kB / 446.9 MB, free: 10.84 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.516e-05/0.07432, allocations: 126.6 kB / 447.1 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.767e-05/0.07436, allocations: 11.91 kB / 447.1 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.582e-05/0.07439, allocations: 12.31 kB / 447.1 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.07439, allocations: 4 kB / 447.1 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.0744, allocations: 0 / 447.1 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.07441, allocations: 0 / 447.1 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001329/0.07455, allocations: 205.6 kB / 447.3 MB, free: 10.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.07456, allocations: 0 / 447.3 MB, free: 10.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001277/0.07469, allocations: 27.98 kB / 447.3 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.0747, allocations: 4 kB / 447.3 MB, free: 10.4 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.457e-05/0.07472, allocations: 0 / 447.3 MB, free: 10.4 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.07473, allocations: 0 / 447.3 MB, free: 10.4 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.07473, allocations: 3.984 kB / 447.3 MB, free: 10.4 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003333/0.07507, allocations: 247.3 kB / 447.6 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.166e-05/0.0751, allocations: 96.92 kB / 447.7 MB, free: 10.03 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.612e-05/0.07512, allocations: 4 kB / 447.7 MB, free: 10.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.907e-05/0.07522, allocations: 4 kB / 447.7 MB, free: 10.02 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.16e-05/0.07526, allocations: 7.984 kB / 447.7 MB, free: 10.01 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.698e-06/0.07527, allocations: 7.938 kB / 447.7 MB, free: 10 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.289e-05/0.07531, allocations: 103.8 kB / 447.8 MB, free: 9.902 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.07531, allocations: 0 / 447.8 MB, free: 9.902 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002199/0.07554, allocations: 20 kB / 447.8 MB, free: 9.883 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 5.538e-05/0.0756, allocations: 95.25 kB / 447.9 MB, free: 9.777 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002376/0.07584, allocations: 96.05 kB / 448 MB, free: 9.684 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.07585, allocations: 0 / 448 MB, free: 9.684 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.426e-05/0.07595, allocations: 43.92 kB / 448 MB, free: 9.641 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003133/0.07627, allocations: 20.47 kB / 448.1 MB, free: 9.621 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005405/0.07682, allocations: 416.1 kB / 448.5 MB, free: 9.18 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.967e-05/0.07693, allocations: 0.7043 MB / 449.2 MB, free: 8.449 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.063e-05/0.07697, allocations: 11.44 kB / 449.2 MB, free: 8.438 MB / 298.7 MB Notification: Performance of SimCode: time 2.9e-07/0.07698, allocations: 192 / 449.2 MB, free: 8.438 MB / 298.7 MB Notification: Performance of Templates: time 0.002039/0.07902, allocations: 1.264 MB / 450.5 MB, free: 7.172 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