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-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.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.002635/0.002635, allocations: 185.5 kB / 16.45 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.236/4.236, allocations: 205.4 MB / 222.6 MB, free: 13.84 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.006804/0.006804, allocations: 102.8 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.2002/0.2002, allocations: 12.59 MB / 331.8 MB, free: 10.31 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009519/0.0009524, allocations: 16.47 kB / 392 MB, free: 54.82 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1691/0.1702, allocations: 50.38 MB / 442.3 MB, free: 11.62 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous): time 0.004044/0.1743, allocations: 1.754 MB / 444.1 MB, free: 9.852 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002288/0.1767, allocations: 0.664 MB / 444.8 MB, free: 9.18 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003086/0.177, allocations: 0 / 444.8 MB, free: 9.18 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003779/0.1774, allocations: 35.77 kB / 444.8 MB, free: 9.145 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003602/0.1778, allocations: 43.91 kB / 444.8 MB, free: 9.102 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007238/0.1786, allocations: 99.75 kB / 444.9 MB, free: 9.004 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007546/0.1794, allocations: 203.6 kB / 445.1 MB, free: 8.805 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003171/0.1797, allocations: 64.09 kB / 445.2 MB, free: 8.742 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005241/0.1803, allocations: 123.6 kB / 445.3 MB, free: 8.621 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004295/0.1808, allocations: 131.5 kB / 445.4 MB, free: 8.492 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.038e-05/0.1809, allocations: 16 kB / 445.5 MB, free: 8.477 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.858e-05/0.181, allocations: 16 kB / 445.5 MB, free: 8.461 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001572/0.1812, allocations: 63.8 kB / 445.5 MB, free: 8.398 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001118/0.1813, allocations: 61.58 kB / 445.6 MB, free: 8.332 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004342/0.1817, allocations: 200.3 kB / 445.8 MB, free: 8.137 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.281e-06/0.1818, allocations: 0 / 445.8 MB, free: 8.137 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.128e-06/0.1818, allocations: 3.938 kB / 445.8 MB, free: 8.133 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.989e-06/0.1818, allocations: 4 kB / 445.8 MB, free: 8.129 MB / 282.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.002258/0.1841, allocations: 0.5454 MB / 446.3 MB, free: 7.535 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.604e-05/0.1842, allocations: 8.031 kB / 446.4 MB, free: 7.527 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001798/0.1844, allocations: 35.7 kB / 446.4 MB, free: 7.492 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005706/0.185, allocations: 250.9 kB / 446.6 MB, free: 7.211 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004361/0.1855, allocations: 141.6 kB / 446.8 MB, free: 7.051 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001355/0.1856, allocations: 23.94 kB / 446.8 MB, free: 7.027 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00199/0.1876, allocations: 371.6 kB / 447.2 MB, free: 6.652 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.67e-05/0.1878, allocations: 4 kB / 447.2 MB, free: 6.648 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.448e-05/0.1879, allocations: 8 kB / 447.2 MB, free: 6.641 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.583e-05/0.1879, allocations: 8 kB / 447.2 MB, free: 6.633 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003614/0.1915, allocations: 0.5096 MB / 447.7 MB, free: 6.125 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006064/0.1977, allocations: 1.027 MB / 448.7 MB, free: 5.027 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002851/0.2006, allocations: 356.2 kB / 449.1 MB, free: 4.672 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001004/0.2008, allocations: 16.17 kB / 449.1 MB, free: 4.656 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.545e-05/0.2008, allocations: 42.78 kB / 449.1 MB, free: 4.605 MB / 282.7 MB Notification: Performance of pre-optimization done (n=28): time 5.7e-06/0.2008, allocations: 0 / 449.1 MB, free: 4.605 MB / 282.7 MB Notification: Performance of matching and sorting (n=52): time 0.09848/0.2993, allocations: 6.657 MB / 455.8 MB, free: 13.86 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001261/0.2995, allocations: 55.84 kB / 455.8 MB, free: 13.79 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008644/0.3004, allocations: 198.3 kB / 456 MB, free: 13.59 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002706/0.3008, allocations: 29.7 kB / 456.1 MB, free: 13.55 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003286/0.3011, allocations: 219 kB / 456.3 MB, free: 13.33 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006035/0.3018, allocations: 181.4 kB / 456.4 MB, free: 13.15 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001665/0.302, allocations: 8 kB / 456.5 MB, free: 13.14 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0003032/0.3023, allocations: 334.8 kB / 456.8 MB, free: 12.81 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007898/0.3102, allocations: 0.4968 MB / 457.3 MB, free: 12.31 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003854/0.3141, allocations: 0.549 MB / 457.8 MB, free: 11.75 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003424/0.3176, allocations: 442 kB / 458.3 MB, free: 11.31 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.2e-05/0.3177, allocations: 0 / 458.3 MB, free: 11.31 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.01211/0.3299, allocations: 1.049 MB / 459.3 MB, free: 10.26 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.95e-05/0.33, allocations: 8 kB / 459.3 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.521e-05/0.33, allocations: 0 / 459.3 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.316e-05/0.3301, allocations: 4 kB / 459.3 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002671/0.3327, allocations: 183.8 kB / 459.5 MB, free: 10.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.523e-05/0.3328, allocations: 7.938 kB / 459.5 MB, free: 10.06 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001913/0.3348, allocations: 107.9 kB / 459.6 MB, free: 9.957 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000199/0.3351, allocations: 16 kB / 459.6 MB, free: 9.941 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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.0005981/0.3357, allocations: 169.5 kB / 459.8 MB, free: 9.766 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002328/0.3359, allocations: 27.62 kB / 459.8 MB, free: 9.738 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002171/0.3362, allocations: 47.31 kB / 459.9 MB, free: 9.691 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.888e-05/0.3362, allocations: 8 kB / 459.9 MB, free: 9.684 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.114e-05/0.3362, allocations: 3.938 kB / 459.9 MB, free: 9.68 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.422e-05/0.3362, allocations: 3.984 kB / 459.9 MB, free: 9.676 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01576/0.352, allocations: 1.995 MB / 461.9 MB, free: 7.516 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.585e-05/0.3521, allocations: 12 kB / 461.9 MB, free: 7.504 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001889/0.354, allocations: 168.6 kB / 462.1 MB, free: 7.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.195e-05/0.3541, allocations: 12 kB / 462.1 MB, free: 7.328 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001405/0.3543, allocations: 16 kB / 462.1 MB, free: 7.312 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.921e-05/0.3544, allocations: 19.92 kB / 462.1 MB, free: 7.293 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.406e-05/0.3544, allocations: 15.94 kB / 462.1 MB, free: 7.277 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01372/0.3681, allocations: 1.751 MB / 463.9 MB, free: 5.184 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005415/0.3687, allocations: 144.8 kB / 464 MB, free: 5.023 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001577/0.3689, allocations: 16 kB / 464 MB, free: 5.008 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001498/0.3705, allocations: 95.91 kB / 464.1 MB, free: 4.914 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004708/0.3752, allocations: 91.67 kB / 464.2 MB, free: 4.824 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000142/0.3754, allocations: 24 kB / 464.2 MB, free: 4.801 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004837/0.3759, allocations: 152.3 kB / 464.4 MB, free: 4.652 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.376, allocations: 0 / 464.4 MB, free: 4.652 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001401/0.3774, allocations: 100 kB / 464.5 MB, free: 4.555 MB / 298.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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.000351/0.3778, allocations: 119.1 kB / 464.6 MB, free: 4.43 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.008174/0.386, allocations: 0.9235 MB / 465.5 MB, free: 3.504 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.072e-05/0.3861, allocations: 0 / 465.5 MB, free: 3.504 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002883/0.389, allocations: 353.8 kB / 465.9 MB, free: 3.16 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001043/0.3901, allocations: 55.91 kB / 465.9 MB, free: 3.105 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005866/0.396, allocations: 1.197 MB / 467.1 MB, free: 1.773 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007925/0.3969, allocations: 0.7882 MB / 467.9 MB, free: 0.9609 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007215/0.3977, allocations: 35.38 kB / 467.9 MB, free: 0.9258 MB / 298.7 MB Notification: Performance of SimCode: time 1.793e-06/0.3977, allocations: 0 / 467.9 MB, free: 0.9258 MB / 298.7 MB Notification: Performance of Templates: time 0.02602/0.4237, allocations: 5.373 MB / 473.3 MB, free: 11.55 MB / 314.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