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.0008804/0.0008805, allocations: 177.6 kB / 8.048 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.347/1.347, allocations: 205.3 MB / 213.8 MB, free: 1.68 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007766/0.0007766, allocations: 86.62 kB / 261.8 MB, free: 1.625 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.06741/0.06741, allocations: 12.6 MB / 322.3 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.321e-05/1.322e-05, allocations: 0 / 378.9 MB, free: 6.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.256/0.256, allocations: 50.37 MB / 429.3 MB, free: 18.36 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1076/0.3637, allocations: 78.38 MB / 0.4958 GB, free: 3.867 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002321/0.364, allocations: 67.97 kB / 0.4958 GB, free: 3.801 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005755/0.3697, allocations: 2.166 MB / 0.498 GB, free: 1.637 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3698, allocations: 0 / 0.498 GB, free: 1.637 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.261e-05/0.3698, allocations: 4 kB / 0.498 GB, free: 1.633 MB / 346.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.0004753/0.3703, allocations: 390.4 kB / 0.4983 GB, free: 1.203 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/0.3703, allocations: 8.031 kB / 0.4983 GB, free: 1.195 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.005e-05/0.3704, allocations: 11.91 kB / 0.4984 GB, free: 1.184 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002154/0.3706, allocations: 182.9 kB / 0.4985 GB, free: 0.9648 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.818e-06/0.3706, allocations: 0 / 0.4985 GB, free: 0.9648 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.93e-05/0.3707, allocations: 15.86 kB / 0.4985 GB, free: 0.9492 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001391/0.3708, allocations: 44.36 kB / 0.4986 GB, free: 0.9062 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001564/0.371, allocations: 91.89 kB / 0.4987 GB, free: 0.8086 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.391e-05/0.371, allocations: 0 / 0.4987 GB, free: 0.8086 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.471e-05/0.371, allocations: 8 kB / 0.4987 GB, free: 0.8008 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.371, allocations: 0 / 0.4987 GB, free: 0.8008 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000734/0.3718, allocations: 0.5018 MB / 0.4992 GB, free: 248 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001286/0.3719, allocations: 66.56 kB / 0.4992 GB, free: 172 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.675e-05/0.372, allocations: 24.86 kB / 0.4993 GB, free: 144 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.305e-05/0.372, allocations: 0 / 0.4993 GB, free: 144 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.02e-05/0.372, allocations: 38.62 kB / 0.4993 GB, free: 96 kB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 7.92e-07/0.372, allocations: 4 kB / 0.4993 GB, free: 92 kB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001806/0.3722, allocations: 65.59 kB / 0.4994 GB, free: 20 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.924e-05/0.3723, allocations: 55.41 kB / 0.4994 GB, free: 15.95 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.818e-05/0.3724, allocations: 110.5 kB / 0.4995 GB, free: 15.84 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.632e-05/0.3724, allocations: 29.64 kB / 0.4996 GB, free: 15.8 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.612e-05/0.3725, allocations: 115.8 kB / 0.4997 GB, free: 15.69 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.105e-05/0.3725, allocations: 27.64 kB / 0.4997 GB, free: 15.66 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.789e-06/0.3725, allocations: 0 / 0.4997 GB, free: 15.66 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.3726, allocations: 318.8 kB / 0.5 GB, free: 15.34 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.632e-05/0.3727, allocations: 20 kB / 0.5 GB, free: 15.32 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.732e-05/0.3727, allocations: 48.28 kB / 0.5001 GB, free: 15.26 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.824e-05/0.3728, allocations: 23.94 kB / 0.5001 GB, free: 15.23 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.3728, allocations: 0 / 0.5001 GB, free: 15.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001464/0.3729, allocations: 109.5 kB / 0.5002 GB, free: 15.12 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.373, allocations: 4 kB / 0.5002 GB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.373, allocations: 4 kB / 0.5002 GB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.373, allocations: 3.953 kB / 0.5002 GB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001732/0.3732, allocations: 35.92 kB / 0.5002 GB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/0.3732, allocations: 3.984 kB / 0.5002 GB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.035e-05/0.3733, allocations: 19.97 kB / 0.5003 GB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.288e-06/0.3733, allocations: 4 kB / 0.5003 GB, free: 15.05 MB / 362.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 () * 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 7.269e-05/0.3734, allocations: 105 kB / 0.5004 GB, free: 14.94 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.782e-05/0.3734, allocations: 7.891 kB / 0.5004 GB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.125e-05/0.3735, allocations: 16.61 kB / 0.5004 GB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.3735, allocations: 0 / 0.5004 GB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.3735, allocations: 3.953 kB / 0.5004 GB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.3735, allocations: 0 / 0.5004 GB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001687/0.3737, allocations: 166.3 kB / 0.5005 GB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.3737, allocations: 4 kB / 0.5005 GB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000141/0.3738, allocations: 35.92 kB / 0.5006 GB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.3738, allocations: 0 / 0.5006 GB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.279e-05/0.3739, allocations: 4 kB / 0.5006 GB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.3739, allocations: 0 / 0.5006 GB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.746e-06/0.3739, allocations: 0 / 0.5006 GB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002452/0.3741, allocations: 195.5 kB / 0.5008 GB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.433e-05/0.3742, allocations: 88.95 kB / 0.5009 GB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.984e-05/0.3742, allocations: 4 kB / 0.5009 GB, free: 14.35 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.743e-05/0.3743, allocations: 8.031 kB / 0.5009 GB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.205e-05/0.3744, allocations: 4 kB / 0.5009 GB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.098e-06/0.3744, allocations: 0 / 0.5009 GB, free: 14.34 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.686e-05/0.3744, allocations: 101 kB / 0.501 GB, free: 14.24 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3744, allocations: 0 / 0.501 GB, free: 14.24 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002249/0.3747, allocations: 19.94 kB / 0.501 GB, free: 14.22 MB / 362.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 () * 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 0.000121/0.3748, allocations: 103.2 kB / 0.5011 GB, free: 14.11 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001351/0.3749, allocations: 55.86 kB / 0.5011 GB, free: 14.06 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.375, allocations: 0 / 0.5011 GB, free: 14.06 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.79e-05/0.375, allocations: 24 kB / 0.5012 GB, free: 14.04 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002721/0.3753, allocations: 11.98 kB / 0.5012 GB, free: 14.02 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005409/0.3758, allocations: 263 kB / 0.5014 GB, free: 13.74 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002828/0.3761, allocations: 0.7041 MB / 0.5021 GB, free: 13.01 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.23e-05/0.3762, allocations: 12.38 kB / 0.5021 GB, free: 13 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.513e-05/0.3762, allocations: 11.44 kB / 0.5021 GB, free: 12.98 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3762, allocations: 4 kB / 0.5021 GB, free: 12.98 MB / 362.7 MB Notification: Performance of Templates: time 0.002995/0.3792, allocations: 0.81 MB / 0.5029 GB, free: 12.18 MB / 362.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/jenkins/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