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.0009738/0.0009739, allocations: 173.2 kB / 16.45 MB, free: 5.684 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.374/1.374, allocations: 205.4 MB / 222.6 MB, free: 9.113 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.0007883/0.0007883, allocations: 95.84 kB / 270.9 MB, free: 8.355 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.07132/0.07132, allocations: 12.58 MB / 331.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004402/0.0004404, allocations: 16 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09956/0.1, allocations: 50.38 MB / 442.4 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.00188/0.1019, allocations: 1.653 MB / 444 MB, free: 14.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006509/0.1026, allocations: 0.5194 MB / 444.5 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001028/0.1027, allocations: 0 / 444.5 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000101/0.1028, allocations: 19.86 kB / 444.6 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.455e-05/0.1029, allocations: 15.84 kB / 444.6 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003023/0.1032, allocations: 47.89 kB / 444.6 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001153/0.1033, allocations: 115.6 kB / 444.7 MB, free: 14.07 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001385/0.1035, allocations: 44.81 kB / 444.8 MB, free: 14.03 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.025e-05/0.1036, allocations: 39.86 kB / 444.8 MB, free: 13.99 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.746e-05/0.1036, allocations: 43.77 kB / 444.9 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.419e-05/0.1037, allocations: 4 kB / 444.9 MB, free: 13.94 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.75e-05/0.1037, allocations: 4 kB / 444.9 MB, free: 13.94 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.358e-05/0.1037, allocations: 15.92 kB / 444.9 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.72e-05/0.1038, allocations: 49.64 kB / 444.9 MB, free: 13.87 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.32e-05/0.1039, allocations: 80.05 kB / 445 MB, free: 13.79 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.1039, allocations: 8 kB / 445 MB, free: 13.78 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1039, allocations: 0 / 445 MB, free: 13.78 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.1039, allocations: 0 / 445 MB, free: 13.78 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.0005026/0.1044, allocations: 399 kB / 445.4 MB, free: 13.34 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.1044, allocations: 12.02 kB / 445.4 MB, free: 13.33 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.126e-05/0.1045, allocations: 15.81 kB / 445.4 MB, free: 13.32 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001867/0.1047, allocations: 214.8 kB / 445.7 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.364e-05/0.1047, allocations: 12 kB / 445.7 MB, free: 13.05 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.626e-05/0.1047, allocations: 15.91 kB / 445.7 MB, free: 13.04 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004794/0.1052, allocations: 234.6 kB / 445.9 MB, free: 12.79 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.1053, allocations: 3.938 kB / 445.9 MB, free: 12.78 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.566e-05/0.1053, allocations: 8 kB / 445.9 MB, free: 12.77 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.1053, allocations: 4 kB / 445.9 MB, free: 12.77 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002375/0.1055, allocations: 99.84 kB / 446 MB, free: 12.67 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005061/0.106, allocations: 0.5959 MB / 446.6 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002349/0.1063, allocations: 147.9 kB / 446.8 MB, free: 11.83 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001417/0.1064, allocations: 86.62 kB / 446.8 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.963e-05/0.1065, allocations: 3.938 kB / 446.8 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.854e-05/0.1065, allocations: 38.56 kB / 446.9 MB, free: 11.68 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.513e-06/0.1065, allocations: 4 kB / 446.9 MB, free: 11.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004796/0.107, allocations: 189.3 kB / 447.1 MB, free: 11.49 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.765e-05/0.107, allocations: 114.9 kB / 447.2 MB, free: 11.35 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.302e-05/0.1071, allocations: 127.5 kB / 447.3 MB, free: 11.22 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.394e-05/0.1071, allocations: 29.7 kB / 447.3 MB, free: 11.18 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.677e-05/0.1072, allocations: 116 kB / 447.5 MB, free: 11.07 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.834e-05/0.1072, allocations: 27.64 kB / 447.5 MB, free: 11.04 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.5e-06/0.1072, allocations: 4 kB / 447.5 MB, free: 11.04 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.568e-05/0.1073, allocations: 318.8 kB / 447.8 MB, free: 10.71 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001112/0.1074, allocations: 51.92 kB / 447.8 MB, free: 10.66 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001309/0.1076, allocations: 136.8 kB / 448 MB, free: 10.48 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000122/0.1077, allocations: 59.91 kB / 448 MB, free: 10.43 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.1077, allocations: 0 / 448 MB, free: 10.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003228/0.108, allocations: 193.6 kB / 448.2 MB, free: 10.23 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/0.108, allocations: 8 kB / 448.2 MB, free: 10.22 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.1081, allocations: 4.438 kB / 448.2 MB, free: 10.22 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.571e-05/0.1081, allocations: 8 kB / 448.2 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001873/0.1083, allocations: 51.84 kB / 448.3 MB, free: 10.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.197e-06/0.1083, allocations: 4 kB / 448.3 MB, free: 10.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000102/0.1084, allocations: 27.83 kB / 448.3 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.038e-05/0.1084, allocations: 8 kB / 448.3 MB, free: 10.12 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 8.172e-05/0.1085, allocations: 133.7 kB / 448.5 MB, free: 9.98 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000122/0.1087, allocations: 89.44 kB / 448.6 MB, free: 9.887 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.716e-05/0.1087, allocations: 16.72 kB / 448.6 MB, free: 9.871 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.1087, allocations: 0 / 448.6 MB, free: 9.871 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.1087, allocations: 0 / 448.6 MB, free: 9.871 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-06/0.1087, allocations: 7.984 kB / 448.6 MB, free: 9.863 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002157/0.1089, allocations: 205.5 kB / 448.8 MB, free: 9.613 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.109, allocations: 0 / 448.8 MB, free: 9.613 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001632/0.1091, allocations: 39.97 kB / 448.8 MB, free: 9.574 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.1091, allocations: 4 kB / 448.8 MB, free: 9.57 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.1092, allocations: 0 / 448.8 MB, free: 9.57 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.1092, allocations: 4 kB / 448.8 MB, free: 9.566 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.1092, allocations: 4 kB / 448.8 MB, free: 9.562 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004541/0.1096, allocations: 387.7 kB / 449.2 MB, free: 9.164 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.673e-05/0.1097, allocations: 92.86 kB / 449.3 MB, free: 9.055 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.059e-05/0.1097, allocations: 7.984 kB / 449.3 MB, free: 9.047 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001268/0.1098, allocations: 11.98 kB / 449.3 MB, free: 9.035 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.518e-05/0.1099, allocations: 4 kB / 449.3 MB, free: 9.031 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.512e-06/0.1099, allocations: 8.062 kB / 449.3 MB, free: 9.023 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.696e-05/0.1099, allocations: 99.77 kB / 449.4 MB, free: 8.926 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1099, allocations: 0 / 449.4 MB, free: 8.926 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000272/0.1102, allocations: 24 kB / 449.5 MB, free: 8.902 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 7.917e-05/0.1103, allocations: 107.2 kB / 449.6 MB, free: 8.785 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002921/0.1106, allocations: 123.8 kB / 449.7 MB, free: 8.664 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.1106, allocations: 3.938 kB / 449.7 MB, free: 8.66 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.276e-05/0.1107, allocations: 32.86 kB / 449.7 MB, free: 8.629 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004541/0.1112, allocations: 64.33 kB / 449.8 MB, free: 8.566 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005978/0.1118, allocations: 499.2 kB / 450.3 MB, free: 8.039 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001576/0.1119, allocations: 0.7087 MB / 451 MB, free: 7.305 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.01e-05/0.112, allocations: 19.44 kB / 451 MB, free: 7.285 MB / 298.7 MB Notification: Performance of SimCode: time 2.6e-07/0.112, allocations: 3.938 kB / 451 MB, free: 7.281 MB / 298.7 MB Notification: Performance of Templates: time 0.00245/0.1144, allocations: 1.455 MB / 452.5 MB, free: 5.828 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