Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.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/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/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.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous") translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002401/0.002401, allocations: 181.2 kB / 17.46 MB, free: 4.359 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.505/2.505, allocations: 205.4 MB / 223.6 MB, free: 9.004 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.001188/0.001188, allocations: 78.42 kB / 271.9 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.1328/0.1328, allocations: 12.2 MB / 332.4 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006647/0.000665, allocations: 16 kB / 392.7 MB, free: 67.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1363/0.137, allocations: 50.29 MB / 443 MB, free: 16.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5222/0.6593, allocations: 80.96 MB / 0.5117 GB, free: 12.56 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002941/0.6596, allocations: 71.19 kB / 0.5118 GB, free: 12.55 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02263/0.6823, allocations: 5.573 MB / 0.5172 GB, free: 10.42 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.785e-06/0.6823, allocations: 3.938 kB / 0.5172 GB, free: 10.41 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.706e-05/0.6824, allocations: 3.844 kB / 0.5172 GB, free: 10.41 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001601/0.684, allocations: 0.5627 MB / 0.5177 GB, free: 9.938 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.449e-05/0.6841, allocations: 11.53 kB / 0.5178 GB, free: 9.938 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001712/0.6843, allocations: 32 kB / 0.5178 GB, free: 9.926 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004935/0.6848, allocations: 237.1 kB / 0.518 GB, free: 9.695 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002938/0.6851, allocations: 138.3 kB / 0.5181 GB, free: 9.59 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001005/0.6852, allocations: 29.94 kB / 0.5182 GB, free: 9.586 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00135/0.6866, allocations: 390.2 kB / 0.5186 GB, free: 9.438 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.008e-05/0.6866, allocations: 0 / 0.5186 GB, free: 9.438 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.251e-05/0.6867, allocations: 14.97 kB / 0.5186 GB, free: 9.434 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.144e-05/0.6867, allocations: 3.875 kB / 0.5186 GB, free: 9.434 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002164/0.6889, allocations: 0.5195 MB / 0.5191 GB, free: 9.238 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002816/0.6917, allocations: 1.032 MB / 0.5201 GB, free: 8.367 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001545/0.6933, allocations: 338.7 kB / 0.5204 GB, free: 8.105 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007943/0.6941, allocations: 195.9 kB / 0.5206 GB, free: 7.961 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.586e-05/0.6942, allocations: 4 kB / 0.5206 GB, free: 7.957 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.714e-05/0.6943, allocations: 42.44 kB / 0.5206 GB, free: 7.91 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 5.32e-06/0.6943, allocations: 0 / 0.5206 GB, free: 7.91 MB / 330.7 MB Notification: Performance of matching and sorting (n=53): time 0.03956/0.7338, allocations: 6.7 MB / 0.5272 GB, free: 1.941 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.578e-05/0.734, allocations: 63.78 kB / 0.5272 GB, free: 1.867 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003811/0.7344, allocations: 205.2 kB / 0.5274 GB, free: 1.688 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.145e-05/0.7345, allocations: 32.45 kB / 0.5275 GB, free: 1.656 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.811e-05/0.7346, allocations: 151.7 kB / 0.5276 GB, free: 1.52 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002017/0.7348, allocations: 177.3 kB / 0.5278 GB, free: 1.371 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.953e-05/0.7349, allocations: 16.94 kB / 0.5278 GB, free: 1.363 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.985e-05/0.735, allocations: 334.9 kB / 0.5281 GB, free: 1.039 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002006/0.737, allocations: 0.4974 MB / 0.5286 GB, free: 0.6953 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002064/0.7391, allocations: 0.5564 MB / 0.5291 GB, free: 292 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003855/0.7429, allocations: 0.8879 MB / 0.53 GB, free: 15.64 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.081e-06/0.743, allocations: 0 / 0.53 GB, free: 15.64 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.004692/0.7477, allocations: 1.065 MB / 0.5311 GB, free: 14.87 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.596e-05/0.7478, allocations: 12.03 kB / 0.5311 GB, free: 14.86 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.195e-05/0.7478, allocations: 3.938 kB / 0.5311 GB, free: 14.85 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.718e-05/0.7479, allocations: 4 kB / 0.5311 GB, free: 14.85 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00163/0.7495, allocations: 191.2 kB / 0.5313 GB, free: 14.66 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.113e-05/0.7495, allocations: 4 kB / 0.5313 GB, free: 14.66 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001176/0.7507, allocations: 106.6 kB / 0.5314 GB, free: 14.56 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001105/0.7509, allocations: 18.5 kB / 0.5314 GB, free: 14.55 MB / 346.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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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 0.0004234/0.7513, allocations: 162.8 kB / 0.5315 GB, free: 14.41 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001564/0.7515, allocations: 23.72 kB / 0.5316 GB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001776/0.7517, allocations: 49.5 kB / 0.5316 GB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.476e-05/0.7517, allocations: 7.938 kB / 0.5316 GB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.908e-06/0.7517, allocations: 4 kB / 0.5316 GB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.086e-05/0.7517, allocations: 3.984 kB / 0.5316 GB, free: 14.35 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007157/0.7589, allocations: 2.015 MB / 0.5336 GB, free: 12.55 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.253e-05/0.759, allocations: 15.94 kB / 0.5336 GB, free: 12.53 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0011/0.7601, allocations: 167.3 kB / 0.5338 GB, free: 12.37 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.421e-05/0.7602, allocations: 8 kB / 0.5338 GB, free: 12.36 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.126e-05/0.7602, allocations: 22.62 kB / 0.5338 GB, free: 12.35 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.229e-05/0.7603, allocations: 15.88 kB / 0.5338 GB, free: 12.33 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.121e-05/0.7603, allocations: 19.92 kB / 0.5338 GB, free: 12.31 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004917/0.7652, allocations: 1.344 MB / 0.5351 GB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004657/0.7658, allocations: 148.1 kB / 0.5353 GB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001224/0.7659, allocations: 26.42 kB / 0.5353 GB, free: 10.91 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008815/0.7668, allocations: 98.59 kB / 0.5354 GB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003367/0.7672, allocations: 86.33 kB / 0.5355 GB, free: 10.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.618e-05/0.7673, allocations: 26.94 kB / 0.5355 GB, free: 10.72 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000367/0.7676, allocations: 161.1 kB / 0.5357 GB, free: 10.59 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.7676, allocations: 0 / 0.5357 GB, free: 10.59 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009406/0.7686, allocations: 98.75 kB / 0.5358 GB, free: 10.5 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.0003866/0.769, allocations: 124.5 kB / 0.5359 GB, free: 10.38 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003889/0.7729, allocations: 0.9334 MB / 0.5368 GB, free: 9.715 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.072e-05/0.773, allocations: 0 / 0.5368 GB, free: 9.715 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001672/0.7746, allocations: 367.6 kB / 0.5371 GB, free: 9.41 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001405/0.7761, allocations: 65.97 kB / 0.5372 GB, free: 9.363 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003787/0.7799, allocations: 1.206 MB / 0.5384 GB, free: 8.141 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005544/0.7805, allocations: 0.7847 MB / 0.5391 GB, free: 7.332 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004597/0.7809, allocations: 35.12 kB / 0.5392 GB, free: 7.301 MB / 346.7 MB Notification: Performance of SimCode: time 1.082e-06/0.781, allocations: 0 / 0.5392 GB, free: 7.301 MB / 346.7 MB Notification: Performance of Templates: time 0.01412/0.7951, allocations: 5.544 MB / 0.5446 GB, free: 1.785 MB / 346.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches