Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008499/0.0008499, allocations: 178.6 kB / 16.77 MB, free: 4.926 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.645/1.645, allocations: 205.4 MB / 222.9 MB, free: 9.016 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.0008073/0.0008071, allocations: 90.3 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.08597/0.08597, allocations: 12.6 MB / 332.2 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004604/0.0004604, allocations: 16 kB / 392.6 MB, free: 66.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1173, allocations: 50.37 MB / 443 MB, free: 16.13 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.001988/0.1193, allocations: 1.661 MB / 444.6 MB, free: 14.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007669/0.1201, allocations: 0.5038 MB / 445.1 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001034/0.1202, allocations: 8 kB / 445.1 MB, free: 13.94 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001045/0.1204, allocations: 11.86 kB / 445.1 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.679e-05/0.1204, allocations: 15.86 kB / 445.2 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003088/0.1207, allocations: 47.95 kB / 445.2 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001531/0.1209, allocations: 119.5 kB / 445.3 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001611/0.1211, allocations: 56.86 kB / 445.4 MB, free: 13.69 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.077e-05/0.1211, allocations: 39.8 kB / 445.4 MB, free: 13.65 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.14e-05/0.1212, allocations: 43.77 kB / 445.5 MB, free: 13.61 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.767e-05/0.1213, allocations: 8 kB / 445.5 MB, free: 13.6 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.765e-05/0.1213, allocations: 4 kB / 445.5 MB, free: 13.6 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.395e-05/0.1213, allocations: 15.92 kB / 445.5 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.452e-05/0.1214, allocations: 69.45 kB / 445.6 MB, free: 13.51 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001192/0.1215, allocations: 84.03 kB / 445.6 MB, free: 13.43 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.1215, allocations: 0 / 445.6 MB, free: 13.43 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.1215, allocations: 4 kB / 445.6 MB, free: 13.42 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.1215, allocations: 0 / 445.6 MB, free: 13.42 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0005425/0.1221, allocations: 403.2 kB / 446 MB, free: 12.98 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.1221, allocations: 8.031 kB / 446 MB, free: 12.97 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.854e-05/0.1222, allocations: 16.75 kB / 446.1 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001942/0.1224, allocations: 208.1 kB / 446.3 MB, free: 12.71 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.77e-05/0.1224, allocations: 12.38 kB / 446.3 MB, free: 12.7 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.025e-05/0.1225, allocations: 16.36 kB / 446.3 MB, free: 12.69 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004576/0.1229, allocations: 242.9 kB / 446.5 MB, free: 12.43 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.1229, allocations: 3.938 kB / 446.5 MB, free: 12.42 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.798e-05/0.123, allocations: 8 kB / 446.5 MB, free: 12.41 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.633e-06/0.123, allocations: 0 / 446.5 MB, free: 12.41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002312/0.1232, allocations: 95.88 kB / 446.6 MB, free: 12.32 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005175/0.1237, allocations: 0.6037 MB / 447.2 MB, free: 11.64 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002345/0.124, allocations: 143.9 kB / 447.4 MB, free: 11.47 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001442/0.1241, allocations: 82.64 kB / 447.5 MB, free: 11.38 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.989e-05/0.1242, allocations: 3.938 kB / 447.5 MB, free: 11.38 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.129e-05/0.1242, allocations: 38.55 kB / 447.5 MB, free: 11.33 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.794e-06/0.1242, allocations: 0 / 447.5 MB, free: 11.33 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004642/0.1247, allocations: 193.6 kB / 447.7 MB, free: 11.14 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.223e-05/0.1248, allocations: 115 kB / 447.8 MB, free: 11 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.873e-05/0.1248, allocations: 134.2 kB / 447.9 MB, free: 10.86 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.401e-05/0.1249, allocations: 29.7 kB / 448 MB, free: 10.82 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.386e-05/0.1249, allocations: 119.7 kB / 448.1 MB, free: 10.7 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.145e-05/0.125, allocations: 23.7 kB / 448.1 MB, free: 10.68 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.033e-06/0.125, allocations: 8 kB / 448.1 MB, free: 10.67 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.998e-05/0.125, allocations: 314.8 kB / 448.4 MB, free: 10.36 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001002/0.1251, allocations: 43.97 kB / 448.5 MB, free: 10.31 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001235/0.1253, allocations: 140.7 kB / 448.6 MB, free: 10.13 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002321/0.1255, allocations: 192.7 kB / 448.8 MB, free: 9.895 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1255, allocations: 0 / 448.8 MB, free: 9.895 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002952/0.1258, allocations: 193.4 kB / 449 MB, free: 9.699 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.1258, allocations: 8.938 kB / 449 MB, free: 9.691 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.1259, allocations: 7.984 kB / 449 MB, free: 9.684 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.714e-05/0.1259, allocations: 12.41 kB / 449 MB, free: 9.672 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001606/0.126, allocations: 47.92 kB / 449 MB, free: 9.625 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.118e-05/0.1261, allocations: 4 kB / 449 MB, free: 9.621 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.278e-05/0.1262, allocations: 27.83 kB / 449.1 MB, free: 9.594 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.358e-05/0.1262, allocations: 8 kB / 449.1 MB, free: 9.586 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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 9.837e-05/0.1263, allocations: 126.6 kB / 449.2 MB, free: 9.453 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001149/0.1264, allocations: 85.53 kB / 449.3 MB, free: 9.363 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.297e-05/0.1265, allocations: 28.64 kB / 449.3 MB, free: 9.336 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.1265, allocations: 0 / 449.3 MB, free: 9.336 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.1265, allocations: 4 kB / 449.3 MB, free: 9.332 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.1265, allocations: 0 / 449.3 MB, free: 9.332 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002166/0.1267, allocations: 205.5 kB / 449.5 MB, free: 9.082 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.1267, allocations: 4 kB / 449.5 MB, free: 9.078 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001542/0.1269, allocations: 35.92 kB / 449.6 MB, free: 9.043 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.1269, allocations: 4 kB / 449.6 MB, free: 9.039 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.654e-05/0.1269, allocations: 7.938 kB / 449.6 MB, free: 9.031 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.1269, allocations: 7.984 kB / 449.6 MB, free: 9.023 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.1269, allocations: 4 kB / 449.6 MB, free: 9.02 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004448/0.1274, allocations: 379.5 kB / 450 MB, free: 8.629 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.053e-05/0.1274, allocations: 88.95 kB / 450 MB, free: 8.523 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.181e-05/0.1275, allocations: 8.031 kB / 450.1 MB, free: 8.516 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001395/0.1276, allocations: 15.92 kB / 450.1 MB, free: 8.5 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.559e-05/0.1277, allocations: 0 / 450.1 MB, free: 8.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.634e-06/0.1277, allocations: 12.05 kB / 450.1 MB, free: 8.488 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.231e-05/0.1277, allocations: 99.27 kB / 450.2 MB, free: 8.391 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1277, allocations: 0 / 450.2 MB, free: 8.391 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002801/0.128, allocations: 27.91 kB / 450.2 MB, free: 8.363 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * 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 8.151e-05/0.1281, allocations: 103.2 kB / 450.3 MB, free: 8.25 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002698/0.1284, allocations: 123.8 kB / 450.4 MB, free: 8.129 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1284, allocations: 4 kB / 450.4 MB, free: 8.125 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.523e-05/0.1285, allocations: 36.72 kB / 450.5 MB, free: 8.09 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004865/0.129, allocations: 56.08 kB / 450.5 MB, free: 8.035 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000612/0.1296, allocations: 487.4 kB / 451 MB, free: 7.52 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001596/0.1298, allocations: 0.7125 MB / 451.7 MB, free: 6.781 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.013e-05/0.1298, allocations: 19.44 kB / 451.7 MB, free: 6.762 MB / 298.7 MB Notification: Performance of SimCode: time 2.9e-07/0.1298, allocations: 3.938 kB / 451.7 MB, free: 6.758 MB / 298.7 MB Notification: Performance of Templates: time 0.002727/0.1326, allocations: 1.484 MB / 453.2 MB, free: 5.277 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches