Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001322/0.001328, allocations: 175 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.653/1.653, allocations: 205.4 MB / 222.9 MB, free: 8.93 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.0007784/0.0007782, allocations: 86.42 kB / 271.3 MB, free: 8.234 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.08241/0.08241, allocations: 12.59 MB / 332.2 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004024/0.0004026, allocations: 12 kB / 392.6 MB, free: 66.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08919/0.08962, allocations: 50.37 MB / 443 MB, free: 16.14 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.002066/0.09173, allocations: 1.716 MB / 444.7 MB, free: 14.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000782/0.09255, allocations: 0.5038 MB / 445.2 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000122/0.09269, allocations: 8 kB / 445.2 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001083/0.09282, allocations: 11.86 kB / 445.2 MB, free: 13.88 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.19e-05/0.09292, allocations: 19.84 kB / 445.2 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002969/0.09323, allocations: 47.89 kB / 445.3 MB, free: 13.81 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001772/0.09341, allocations: 119.6 kB / 445.4 MB, free: 13.69 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001478/0.09357, allocations: 53.45 kB / 445.4 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.725e-05/0.09365, allocations: 39.73 kB / 445.5 MB, free: 13.6 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.614e-05/0.09373, allocations: 47.78 kB / 445.5 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.383e-05/0.09377, allocations: 7.984 kB / 445.5 MB, free: 13.54 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.109e-05/0.09379, allocations: 4 kB / 445.5 MB, free: 13.54 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.996e-05/0.09382, allocations: 15.92 kB / 445.5 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.894e-05/0.09388, allocations: 77.38 kB / 445.6 MB, free: 13.44 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001121/0.094, allocations: 84.03 kB / 445.7 MB, free: 13.36 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.09401, allocations: 0 / 445.7 MB, free: 13.36 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.09402, allocations: 4 kB / 445.7 MB, free: 13.36 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.09403, allocations: 4 kB / 445.7 MB, free: 13.35 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0005187/0.09456, allocations: 415.1 kB / 446.1 MB, free: 12.9 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/0.0946, allocations: 8.031 kB / 446.1 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.574e-05/0.09466, allocations: 16.75 kB / 446.1 MB, free: 12.88 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001899/0.09485, allocations: 216 kB / 446.3 MB, free: 12.62 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.598e-05/0.09488, allocations: 12.38 kB / 446.4 MB, free: 12.61 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.223e-05/0.09492, allocations: 12.38 kB / 446.4 MB, free: 12.6 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004722/0.09539, allocations: 242.9 kB / 446.6 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.09542, allocations: 0 / 446.6 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.526e-05/0.09544, allocations: 4 kB / 446.6 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.09545, allocations: 4 kB / 446.6 MB, free: 12.33 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000232/0.09569, allocations: 99.75 kB / 446.7 MB, free: 12.23 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005831/0.09629, allocations: 0.6037 MB / 447.3 MB, free: 11.55 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003037/0.0966, allocations: 143.9 kB / 447.5 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000132/0.09675, allocations: 82.62 kB / 447.5 MB, free: 11.3 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.509e-05/0.09678, allocations: 4 kB / 447.5 MB, free: 11.29 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.761e-05/0.0968, allocations: 38.5 kB / 447.6 MB, free: 11.25 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 2.514e-06/0.09681, allocations: 3.984 kB / 447.6 MB, free: 11.24 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004617/0.09728, allocations: 197.3 kB / 447.8 MB, free: 11.04 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.102e-05/0.09735, allocations: 115.3 kB / 447.9 MB, free: 10.91 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.064e-05/0.09744, allocations: 134.1 kB / 448 MB, free: 10.76 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.29e-05/0.09746, allocations: 37.64 kB / 448.1 MB, free: 10.72 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.924e-05/0.09752, allocations: 115.9 kB / 448.2 MB, free: 10.6 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.051e-05/0.09754, allocations: 27.72 kB / 448.2 MB, free: 10.57 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.004e-06/0.09756, allocations: 4 kB / 448.2 MB, free: 10.57 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.495e-05/0.09762, allocations: 322.8 kB / 448.5 MB, free: 10.25 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001055/0.09773, allocations: 43.97 kB / 448.6 MB, free: 10.2 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001296/0.09786, allocations: 149.6 kB / 448.7 MB, free: 10.01 MB / 298.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = PI.y_start (0.0 = PI.y_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.0003861/0.09826, allocations: 286.7 kB / 449 MB, free: 9.66 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.09827, allocations: 4 kB / 449 MB, free: 9.656 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003292/0.09861, allocations: 217.3 kB / 449.2 MB, free: 9.438 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.09863, allocations: 4 kB / 449.2 MB, free: 9.434 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.09865, allocations: 4 kB / 449.2 MB, free: 9.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/0.09867, allocations: 4 kB / 449.2 MB, free: 9.426 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001374/0.09881, allocations: 55.91 kB / 449.3 MB, free: 9.371 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/0.09883, allocations: 7.938 kB / 449.3 MB, free: 9.363 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.743e-05/0.09894, allocations: 20.03 kB / 449.3 MB, free: 9.344 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.417e-05/0.09896, allocations: 19.98 kB / 449.3 MB, free: 9.324 MB / 298.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: PI.y = PI.y_start. 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 9.801e-05/0.09906, allocations: 126.7 kB / 449.4 MB, free: 9.191 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000158/0.09922, allocations: 89.47 kB / 449.5 MB, free: 9.098 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.97e-05/0.09927, allocations: 16.72 kB / 449.5 MB, free: 9.082 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.09928, allocations: 7.984 kB / 449.5 MB, free: 9.074 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.09929, allocations: 0 / 449.5 MB, free: 9.074 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.0993, allocations: 0 / 449.5 MB, free: 9.074 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000213/0.09952, allocations: 217.4 kB / 449.8 MB, free: 8.812 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.09953, allocations: 4 kB / 449.8 MB, free: 8.809 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000192/0.09973, allocations: 43.97 kB / 449.8 MB, free: 8.766 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.09974, allocations: 0 / 449.8 MB, free: 8.766 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.09976, allocations: 0 / 449.8 MB, free: 8.766 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.118e-06/0.09977, allocations: 7.984 kB / 449.8 MB, free: 8.758 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.09978, allocations: 3.938 kB / 449.8 MB, free: 8.754 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004448/0.1002, allocations: 387.5 kB / 450.2 MB, free: 8.355 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.325e-05/0.1003, allocations: 96.88 kB / 450.3 MB, free: 8.242 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.284e-05/0.1003, allocations: 16.06 kB / 450.3 MB, free: 8.227 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001245/0.1004, allocations: 8 kB / 450.3 MB, free: 8.219 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.993e-05/0.1005, allocations: 8.078 kB / 450.3 MB, free: 8.211 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.746e-06/0.1005, allocations: 7.938 kB / 450.3 MB, free: 8.203 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.767e-05/0.1005, allocations: 103.3 kB / 450.4 MB, free: 8.102 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1006, allocations: 0 / 450.4 MB, free: 8.102 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002993/0.1009, allocations: 24 kB / 450.5 MB, free: 8.078 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 0.0001013/0.101, allocations: 107.2 kB / 450.6 MB, free: 7.961 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003227/0.1013, allocations: 128.6 kB / 450.7 MB, free: 7.836 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.726e-06/0.1013, allocations: 4.062 kB / 450.7 MB, free: 7.832 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.386e-05/0.1014, allocations: 35.97 kB / 450.7 MB, free: 7.797 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004632/0.1019, allocations: 64.25 kB / 450.8 MB, free: 7.734 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007918/0.1027, allocations: 0.5324 MB / 451.3 MB, free: 7.16 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001625/0.1029, allocations: 0.7126 MB / 452 MB, free: 6.422 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.468e-05/0.1029, allocations: 19.44 kB / 452.1 MB, free: 6.402 MB / 298.7 MB Notification: Performance of SimCode: time 6.91e-07/0.1029, allocations: 0 / 452.1 MB, free: 6.402 MB / 298.7 MB Notification: Performance of Templates: time 0.003172/0.1061, allocations: 1.591 MB / 453.6 MB, free: 4.816 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches