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.001471/0.001471, allocations: 178.9 kB / 16.77 MB, free: 4.922 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.778/1.778, allocations: 205.4 MB / 222.9 MB, free: 9.02 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.0007489/0.0007489, allocations: 97.45 kB / 271.3 MB, free: 8.246 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.07455/0.07455, allocations: 12.6 MB / 332.1 MB, free: 11.26 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004098/0.0004098, allocations: 15.98 kB / 392.6 MB, free: 66.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08703/0.08746, allocations: 50.38 MB / 443 MB, free: 16.14 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous): time 0.001945/0.08946, allocations: 1.79 MB / 444.7 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008982/0.09037, allocations: 0.6561 MB / 445.4 MB, free: 13.67 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001223/0.09051, allocations: 0 / 445.4 MB, free: 13.67 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00025/0.09077, allocations: 43.77 kB / 445.4 MB, free: 13.63 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001137/0.09089, allocations: 35.77 kB / 445.5 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002742/0.09118, allocations: 95.81 kB / 445.6 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002399/0.09142, allocations: 303.2 kB / 445.9 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001499/0.09158, allocations: 64.11 kB / 445.9 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001491/0.09174, allocations: 123.5 kB / 446.1 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001499/0.0919, allocations: 127.5 kB / 446.2 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.446e-05/0.09194, allocations: 16 kB / 446.2 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.089e-05/0.09198, allocations: 12 kB / 446.2 MB, free: 12.87 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.211e-05/0.09208, allocations: 75.77 kB / 446.3 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.955e-05/0.09217, allocations: 133.1 kB / 446.4 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001492/0.09233, allocations: 199.7 kB / 446.6 MB, free: 12.46 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.09234, allocations: 0 / 446.6 MB, free: 12.46 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.983e-06/0.09235, allocations: 3.938 kB / 446.6 MB, free: 12.46 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.191e-06/0.09236, allocations: 0 / 446.6 MB, free: 12.46 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0008784/0.09325, allocations: 0.5495 MB / 447.2 MB, free: 11.86 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.361e-05/0.09329, allocations: 8.031 kB / 447.2 MB, free: 11.85 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.099e-05/0.09335, allocations: 32.66 kB / 447.2 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002408/0.0936, allocations: 252.3 kB / 447.4 MB, free: 11.54 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001685/0.09378, allocations: 142.2 kB / 447.6 MB, free: 11.38 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.975e-05/0.09384, allocations: 27.94 kB / 447.6 MB, free: 11.35 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007074/0.09455, allocations: 375.6 kB / 448 MB, free: 10.97 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.846e-05/0.09458, allocations: 0 / 448 MB, free: 10.97 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.253e-05/0.09462, allocations: 16 kB / 448 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.346e-06/0.09463, allocations: 4 kB / 448 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001124/0.09577, allocations: 0.5135 MB / 448.5 MB, free: 10.44 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001445/0.09722, allocations: 1.03 MB / 449.5 MB, free: 9.336 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009975/0.09823, allocations: 355.1 kB / 449.9 MB, free: 8.98 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004069/0.09865, allocations: 189.2 kB / 450.1 MB, free: 8.793 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.676e-05/0.09869, allocations: 240 / 450.1 MB, free: 8.793 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.287e-05/0.09871, allocations: 38.8 kB / 450.1 MB, free: 8.746 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 1.042e-06/0.09872, allocations: 0 / 450.1 MB, free: 8.746 MB / 298.7 MB Notification: Performance of matching and sorting (n=52): time 0.02296/0.1217, allocations: 6.667 MB / 456.8 MB, free: 1.984 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.569e-05/0.1218, allocations: 59.84 kB / 456.8 MB, free: 1.914 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001846/0.122, allocations: 190.3 kB / 457 MB, free: 1.719 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.541e-05/0.122, allocations: 37.7 kB / 457.1 MB, free: 1.676 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.791e-05/0.1221, allocations: 148.6 kB / 457.2 MB, free: 1.523 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001002/0.1222, allocations: 173.4 kB / 457.4 MB, free: 1.352 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.769e-05/0.1222, allocations: 12 kB / 457.4 MB, free: 1.34 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.331e-05/0.1223, allocations: 342.8 kB / 457.7 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00104/0.1233, allocations: 0.4891 MB / 458.2 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001111/0.1245, allocations: 0.5567 MB / 458.8 MB, free: 15.93 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00217/0.1266, allocations: 0.8736 MB / 459.6 MB, free: 15.05 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1267, allocations: 0 / 459.6 MB, free: 15.05 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002538/0.1292, allocations: 1.057 MB / 460.7 MB, free: 13.98 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/0.1292, allocations: 7.938 kB / 460.7 MB, free: 13.98 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.347e-06/0.1293, allocations: 3.984 kB / 460.7 MB, free: 13.97 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.465e-05/0.1293, allocations: 7.938 kB / 460.7 MB, free: 13.96 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009147/0.1302, allocations: 187.8 kB / 460.9 MB, free: 13.78 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.1302, allocations: 4 kB / 460.9 MB, free: 13.78 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006164/0.1308, allocations: 103.9 kB / 461 MB, free: 13.68 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.43e-05/0.1309, allocations: 20 kB / 461 MB, free: 13.66 MB / 314.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.0002272/0.1311, allocations: 165.5 kB / 461.2 MB, free: 13.48 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.105e-05/0.1312, allocations: 35.59 kB / 461.2 MB, free: 13.45 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001127/0.1314, allocations: 51.3 kB / 461.3 MB, free: 13.4 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.1314, allocations: 4 kB / 461.3 MB, free: 13.39 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.421e-06/0.1314, allocations: 0 / 461.3 MB, free: 13.39 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.1314, allocations: 0 / 461.3 MB, free: 13.39 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003939/0.1353, allocations: 1.993 MB / 463.3 MB, free: 11.23 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.177e-06/0.1354, allocations: 8 kB / 463.3 MB, free: 11.23 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006148/0.136, allocations: 176.6 kB / 463.4 MB, free: 11.05 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.073e-05/0.136, allocations: 11.94 kB / 463.5 MB, free: 11.04 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.404e-05/0.1361, allocations: 23.98 kB / 463.5 MB, free: 11.02 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.177e-05/0.1361, allocations: 12 kB / 463.5 MB, free: 11.01 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.179e-05/0.1361, allocations: 15.94 kB / 463.5 MB, free: 10.99 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002552/0.1386, allocations: 1.334 MB / 464.8 MB, free: 9.531 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001595/0.1388, allocations: 148.7 kB / 465 MB, free: 9.367 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.635e-05/0.1389, allocations: 23.94 kB / 465 MB, free: 9.344 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004773/0.1394, allocations: 91.92 kB / 465.1 MB, free: 9.254 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001781/0.1396, allocations: 91.69 kB / 465.2 MB, free: 9.164 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.872e-05/0.1396, allocations: 24 kB / 465.2 MB, free: 9.141 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001467/0.1398, allocations: 156.2 kB / 465.4 MB, free: 8.988 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1398, allocations: 0 / 465.4 MB, free: 8.988 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004713/0.1402, allocations: 92 kB / 465.5 MB, free: 8.898 MB / 314.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.0001387/0.1404, allocations: 138.9 kB / 465.6 MB, free: 8.754 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002097/0.1425, allocations: 0.9118 MB / 466.5 MB, free: 7.84 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.1425, allocations: 4.188 kB / 466.5 MB, free: 7.836 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000857/0.1434, allocations: 361.5 kB / 466.9 MB, free: 7.484 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006646/0.144, allocations: 67.95 kB / 466.9 MB, free: 7.418 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002016/0.1461, allocations: 1.197 MB / 468.1 MB, free: 6.086 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003468/0.1464, allocations: 0.7804 MB / 468.9 MB, free: 5.281 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002547/0.1467, allocations: 35.42 kB / 468.9 MB, free: 5.246 MB / 314.7 MB Notification: Performance of SimCode: time 5.41e-07/0.1467, allocations: 0 / 468.9 MB, free: 5.246 MB / 314.7 MB Notification: Performance of Templates: time 0.007357/0.1541, allocations: 5.515 MB / 474.5 MB, free: 15.73 MB / 330.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/jenkins/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