Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001216/0.001216, allocations: 182.1 kB / 16.45 MB, free: 5.656 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.41/1.41, allocations: 205.4 MB / 222.6 MB, free: 9.098 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.0008122/0.0008121, allocations: 87.08 kB / 270.9 MB, free: 8.348 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.0844/0.0844, allocations: 12.6 MB / 331.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004233/0.0004232, allocations: 12 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09829/0.09873, allocations: 50.38 MB / 442.4 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.00196/0.1007, allocations: 1.653 MB / 444 MB, free: 14.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007642/0.1015, allocations: 0.5506 MB / 444.6 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.825e-05/0.1016, allocations: 4 kB / 444.6 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000102/0.1018, allocations: 11.86 kB / 444.6 MB, free: 14.22 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001292/0.1019, allocations: 23.83 kB / 444.6 MB, free: 14.2 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000234/0.1021, allocations: 51.94 kB / 444.7 MB, free: 14.14 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001247/0.1023, allocations: 119.6 kB / 444.8 MB, free: 14.03 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001433/0.1024, allocations: 41.05 kB / 444.8 MB, free: 13.99 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.713e-05/0.1025, allocations: 43.78 kB / 444.9 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.772e-05/0.1026, allocations: 43.78 kB / 444.9 MB, free: 13.9 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.059e-05/0.1026, allocations: 4 kB / 444.9 MB, free: 13.9 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.762e-05/0.1026, allocations: 8 kB / 444.9 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.021e-05/0.1026, allocations: 15.92 kB / 444.9 MB, free: 13.88 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.51e-05/0.1027, allocations: 49.64 kB / 445 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001029/0.1028, allocations: 80.05 kB / 445.1 MB, free: 13.74 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.1028, allocations: 0 / 445.1 MB, free: 13.74 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.973e-06/0.1028, allocations: 0 / 445.1 MB, free: 13.74 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.235e-06/0.1028, allocations: 0 / 445.1 MB, free: 13.74 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005274/0.1034, allocations: 422.9 kB / 445.5 MB, free: 13.28 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.1034, allocations: 12.03 kB / 445.5 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.361e-05/0.1034, allocations: 19.75 kB / 445.5 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001826/0.1036, allocations: 202.7 kB / 445.7 MB, free: 13.01 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.333e-05/0.1037, allocations: 8 kB / 445.7 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.451e-05/0.1037, allocations: 12 kB / 445.7 MB, free: 12.99 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000487/0.1042, allocations: 254.5 kB / 446 MB, free: 12.72 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.424e-05/0.1042, allocations: 0 / 446 MB, free: 12.72 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.685e-05/0.1042, allocations: 4 kB / 446 MB, free: 12.71 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.1043, allocations: 4 kB / 446 MB, free: 12.71 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002497/0.1045, allocations: 99.88 kB / 446.1 MB, free: 12.61 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005239/0.105, allocations: 0.5959 MB / 446.7 MB, free: 11.94 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000319/0.1054, allocations: 159.7 kB / 446.8 MB, free: 11.76 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001448/0.1055, allocations: 78.83 kB / 446.9 MB, free: 11.67 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.288e-05/0.1056, allocations: 7.922 kB / 446.9 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.604e-05/0.1056, allocations: 42.55 kB / 447 MB, free: 11.61 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.302e-06/0.1056, allocations: 0 / 447 MB, free: 11.61 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004999/0.1061, allocations: 201.5 kB / 447.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.146e-05/0.1062, allocations: 106.8 kB / 447.3 MB, free: 11.28 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.24e-05/0.1063, allocations: 127.7 kB / 447.4 MB, free: 11.15 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.57e-05/0.1063, allocations: 29.7 kB / 447.4 MB, free: 11.11 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.616e-05/0.1064, allocations: 115.8 kB / 447.5 MB, free: 11 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.429e-05/0.1064, allocations: 23.7 kB / 447.5 MB, free: 10.97 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.45e-06/0.1064, allocations: 0 / 447.5 MB, free: 10.97 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.66e-05/0.1065, allocations: 326.8 kB / 447.9 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001132/0.1066, allocations: 44.38 kB / 447.9 MB, free: 10.6 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001439/0.1068, allocations: 138.4 kB / 448 MB, free: 10.42 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001296/0.1069, allocations: 63.91 kB / 448.1 MB, free: 10.36 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.1069, allocations: 3.953 kB / 448.1 MB, free: 10.35 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003279/0.1072, allocations: 209.5 kB / 448.3 MB, free: 10.14 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/0.1073, allocations: 4.375 kB / 448.3 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.1073, allocations: 4 kB / 448.3 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.878e-05/0.1073, allocations: 8 kB / 448.3 MB, free: 10.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001481/0.1075, allocations: 47.91 kB / 448.4 MB, free: 10.08 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.447e-06/0.1075, allocations: 7.938 kB / 448.4 MB, free: 10.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001004/0.1076, allocations: 27.83 kB / 448.4 MB, free: 10.04 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.161e-05/0.1076, allocations: 8.094 kB / 448.4 MB, free: 10.04 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (21): * Single equations (assignments): 21 * 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 7.545e-05/0.1077, allocations: 137.5 kB / 448.6 MB, free: 9.891 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000169/0.1079, allocations: 89.48 kB / 448.6 MB, free: 9.797 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001081/0.108, allocations: 20.7 kB / 448.7 MB, free: 9.777 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.108, allocations: 4 kB / 448.7 MB, free: 9.773 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.108, allocations: 0 / 448.7 MB, free: 9.773 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.108, allocations: 3.938 kB / 448.7 MB, free: 9.77 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002068/0.1082, allocations: 205.6 kB / 448.9 MB, free: 9.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.1082, allocations: 0 / 448.9 MB, free: 9.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001736/0.1084, allocations: 51.86 kB / 448.9 MB, free: 9.469 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.1084, allocations: 0 / 448.9 MB, free: 9.469 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.375e-05/0.1084, allocations: 4 kB / 448.9 MB, free: 9.465 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1084, allocations: 0 / 448.9 MB, free: 9.465 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1084, allocations: 0 / 448.9 MB, free: 9.465 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004706/0.1089, allocations: 395.9 kB / 449.3 MB, free: 9.059 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.199e-05/0.109, allocations: 92.97 kB / 449.4 MB, free: 8.949 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.362e-05/0.109, allocations: 11.95 kB / 449.4 MB, free: 8.938 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001304/0.1091, allocations: 12.06 kB / 449.4 MB, free: 8.926 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.386e-05/0.1092, allocations: 7.984 kB / 449.4 MB, free: 8.918 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.915e-06/0.1092, allocations: 4 kB / 449.4 MB, free: 8.914 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.803e-05/0.1092, allocations: 99.34 kB / 449.5 MB, free: 8.816 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1092, allocations: 0 / 449.5 MB, free: 8.816 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002772/0.1095, allocations: 31.91 kB / 449.6 MB, free: 8.785 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 (15): * Single equations (assignments): 15 * 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.852e-05/0.1096, allocations: 95.25 kB / 449.7 MB, free: 8.68 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000307/0.1099, allocations: 132.6 kB / 449.8 MB, free: 8.551 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.11, allocations: 0 / 449.8 MB, free: 8.551 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.121e-05/0.11, allocations: 39.98 kB / 449.8 MB, free: 8.512 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004374/0.1105, allocations: 52.28 kB / 449.9 MB, free: 8.461 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006401/0.1111, allocations: 0.4918 MB / 450.4 MB, free: 7.93 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000149/0.1113, allocations: 0.7167 MB / 451.1 MB, free: 7.188 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.738e-05/0.1113, allocations: 19.44 kB / 451.1 MB, free: 7.168 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.1114, allocations: 3.938 kB / 451.1 MB, free: 7.164 MB / 298.7 MB Notification: Performance of Templates: time 0.002588/0.1139, allocations: 1.502 MB / 452.6 MB, free: 5.664 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches