Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.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.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked") translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001261/0.001262, allocations: 173.3 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.361/1.361, allocations: 205 MB / 222.5 MB, free: 9.145 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.0008778/0.0008779, allocations: 89.83 kB / 270.5 MB, free: 8.664 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.1036/0.1036, allocations: 12.56 MB / 331 MB, free: 12.07 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003499/0.0003499, allocations: 16.38 kB / 391.7 MB, free: 66.44 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08346/0.08382, allocations: 49.98 MB / 441.7 MB, free: 16.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked): time 0.00212/0.086, allocations: 2.062 MB / 443.7 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001052/0.08707, allocations: 0.827 MB / 444.6 MB, free: 13.48 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001347/0.08722, allocations: 7.938 kB / 444.6 MB, free: 13.47 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002621/0.08749, allocations: 43.77 kB / 444.6 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001476/0.08765, allocations: 43.69 kB / 444.7 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004105/0.08807, allocations: 155.8 kB / 444.8 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002537/0.08833, allocations: 363.5 kB / 445.2 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001987/0.08854, allocations: 87.84 kB / 445.3 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002017/0.08874, allocations: 131.5 kB / 445.4 MB, free: 12.67 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001857/0.08894, allocations: 155.3 kB / 445.5 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.008e-05/0.08899, allocations: 16 kB / 445.6 MB, free: 12.5 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.602e-05/0.08903, allocations: 16 kB / 445.6 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.231e-05/0.08912, allocations: 83.7 kB / 445.6 MB, free: 12.4 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.99e-05/0.08922, allocations: 131.2 kB / 445.8 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001601/0.08938, allocations: 231.7 kB / 446 MB, free: 12.05 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.0894, allocations: 0 / 446 MB, free: 12.05 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.0894, allocations: 0 / 446 MB, free: 12.05 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.08941, allocations: 0 / 446 MB, free: 12.05 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.0009444/0.09036, allocations: 0.5851 MB / 446.6 MB, free: 11.41 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.359e-05/0.0904, allocations: 11.97 kB / 446.6 MB, free: 11.4 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.016e-05/0.09048, allocations: 44.56 kB / 446.6 MB, free: 11.36 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002999/0.09079, allocations: 269.2 kB / 446.9 MB, free: 11.06 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001575/0.09095, allocations: 142.3 kB / 447 MB, free: 10.9 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.632e-05/0.09101, allocations: 36.28 kB / 447.1 MB, free: 10.86 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009588/0.09198, allocations: 0.5817 MB / 447.7 MB, free: 10.25 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.912e-05/0.09201, allocations: 0 / 447.7 MB, free: 10.25 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.236e-05/0.09205, allocations: 12 kB / 447.7 MB, free: 10.24 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.898e-06/0.09206, allocations: 8 kB / 447.7 MB, free: 10.23 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001194/0.09326, allocations: 0.5347 MB / 448.2 MB, free: 9.699 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001227/0.0945, allocations: 1.041 MB / 449.3 MB, free: 8.578 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001376/0.09589, allocations: 0.5161 MB / 449.8 MB, free: 8.027 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005273/0.09643, allocations: 275.4 kB / 450 MB, free: 7.746 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.325e-05/0.0965, allocations: 7.938 kB / 450.1 MB, free: 7.738 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.753e-05/0.09652, allocations: 42.55 kB / 450.1 MB, free: 7.688 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 1.753e-06/0.09653, allocations: 4 kB / 450.1 MB, free: 7.684 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.03586/0.1324, allocations: 6.743 MB / 456.8 MB, free: 0.9258 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.298e-05/0.1325, allocations: 152.9 kB / 457 MB, free: 0.7461 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001681/0.1327, allocations: 195.4 kB / 457.2 MB, free: 0.543 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.455e-05/0.1327, allocations: 41.7 kB / 457.2 MB, free: 0.4961 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.751e-05/0.1328, allocations: 145.5 kB / 457.4 MB, free: 360 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001313/0.1329, allocations: 189.3 kB / 457.5 MB, free: 168 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.803e-05/0.1331, allocations: 57.69 kB / 457.6 MB, free: 104 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.1332, allocations: 342.8 kB / 457.9 MB, free: 15.76 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001576/0.1348, allocations: 0.6539 MB / 458.6 MB, free: 15.1 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001658/0.1364, allocations: 0.8354 MB / 459.4 MB, free: 14.19 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003056/0.1395, allocations: 1.329 MB / 460.8 MB, free: 12.79 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.1395, allocations: 0 / 460.8 MB, free: 12.79 MB / 314.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003506/0.143, allocations: 1.472 MB / 462.2 MB, free: 11.31 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.746e-05/0.1431, allocations: 8 kB / 462.2 MB, free: 11.3 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.1431, allocations: 4.375 kB / 462.2 MB, free: 11.3 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.738e-05/0.1431, allocations: 15.98 kB / 462.3 MB, free: 11.28 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001316/0.1445, allocations: 231.7 kB / 462.5 MB, free: 11.05 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.623e-05/0.1445, allocations: 8 kB / 462.5 MB, free: 11.05 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009665/0.1455, allocations: 127.7 kB / 462.6 MB, free: 10.92 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.176e-05/0.1456, allocations: 28 kB / 462.6 MB, free: 10.89 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * 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 0.0003164/0.1459, allocations: 181.6 kB / 462.8 MB, free: 10.71 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003112/0.1462, allocations: 161 kB / 463 MB, free: 10.54 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001486/0.1464, allocations: 67.3 kB / 463 MB, free: 10.48 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.536e-06/0.1464, allocations: 12 kB / 463.1 MB, free: 10.46 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.886e-06/0.1464, allocations: 0 / 463.1 MB, free: 10.46 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.936e-06/0.1464, allocations: 4.219 kB / 463.1 MB, free: 10.46 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004907/0.1513, allocations: 2.289 MB / 465.3 MB, free: 7.984 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.544e-05/0.1514, allocations: 8 kB / 465.4 MB, free: 7.977 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007627/0.1521, allocations: 208 kB / 465.6 MB, free: 7.773 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-05/0.1522, allocations: 12 kB / 465.6 MB, free: 7.762 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.832e-05/0.1522, allocations: 24 kB / 465.6 MB, free: 7.738 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.611e-05/0.1522, allocations: 23.92 kB / 465.6 MB, free: 7.715 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.225e-05/0.1523, allocations: 15.94 kB / 465.6 MB, free: 7.699 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003142/0.1554, allocations: 1.67 MB / 467.3 MB, free: 5.883 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002063/0.1556, allocations: 160.6 kB / 467.5 MB, free: 5.707 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.226e-05/0.1557, allocations: 36.05 kB / 467.5 MB, free: 5.672 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005666/0.1563, allocations: 91.92 kB / 467.6 MB, free: 5.582 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002054/0.1565, allocations: 95.66 kB / 467.7 MB, free: 5.488 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.607e-05/0.1566, allocations: 32 kB / 467.7 MB, free: 5.457 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001221/0.1567, allocations: 137.2 kB / 467.8 MB, free: 5.324 MB / 314.7 MB Notification: Performance of sort global known variables: time 2e-07/0.1567, allocations: 0 / 467.8 MB, free: 5.324 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006253/0.1573, allocations: 124 kB / 468 MB, free: 5.203 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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 0.0001688/0.1575, allocations: 134.9 kB / 468.1 MB, free: 5.062 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00282/0.1603, allocations: 1.195 MB / 469.3 MB, free: 3.863 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.713e-06/0.1604, allocations: 7.938 kB / 469.3 MB, free: 3.855 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009558/0.1613, allocations: 378 kB / 469.7 MB, free: 3.488 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009636/0.1623, allocations: 144.1 kB / 469.8 MB, free: 3.348 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002236/0.1645, allocations: 1.364 MB / 471.2 MB, free: 1.812 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003942/0.165, allocations: 0.8129 MB / 472 MB, free: 0.9727 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003393/0.1653, allocations: 43.42 kB / 472 MB, free: 0.9297 MB / 314.7 MB Notification: Performance of SimCode: time 8.42e-07/0.1653, allocations: 0 / 472 MB, free: 0.9297 MB / 314.7 MB Notification: Performance of Templates: time 0.01134/0.1767, allocations: 7.114 MB / 479.1 MB, free: 9.793 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:PI.y,Time,angle.phi,gain.y,speed.w Variables in the result:PI.y,angle.phi,gain.y,speed.w,time