Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.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.ClockedWith_AD_DA_Effects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001503/0.001503, allocations: 185.1 kB / 16.44 MB, free: 5.672 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.899/1.899, allocations: 205.4 MB / 222.6 MB, free: 9.133 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.001158/0.001158, allocations: 88.58 kB / 270.9 MB, free: 8.367 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.1006/0.1006, allocations: 12.6 MB / 331.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005355/0.0005356, allocations: 12 kB / 392 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08544/0.086, allocations: 50.37 MB / 442.3 MB, free: 16.49 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4406/0.5266, allocations: 81.9 MB / 0.512 GB, free: 12.03 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002552/0.5269, allocations: 75.27 kB / 0.512 GB, free: 12.02 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02979/0.5567, allocations: 7.285 MB / 0.5191 GB, free: 8.445 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.5568, allocations: 4 kB / 0.5191 GB, free: 8.441 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.037e-05/0.5568, allocations: 4 kB / 0.5191 GB, free: 8.438 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001195/0.5581, allocations: 0.6124 MB / 0.5197 GB, free: 7.805 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.5581, allocations: 8.031 kB / 0.5198 GB, free: 7.797 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001048/0.5582, allocations: 44.22 kB / 0.5198 GB, free: 7.754 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007372/0.559, allocations: 360.6 kB / 0.5201 GB, free: 7.402 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.785e-05/0.559, allocations: 23.75 kB / 0.5202 GB, free: 7.387 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.453e-05/0.5591, allocations: 26.19 kB / 0.5202 GB, free: 7.371 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001851/0.561, allocations: 0.7345 MB / 0.5209 GB, free: 6.758 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.51e-05/0.561, allocations: 0 / 0.5209 GB, free: 6.758 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.655e-05/0.5611, allocations: 19.8 kB / 0.5209 GB, free: 6.746 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.228e-05/0.5611, allocations: 8 kB / 0.5209 GB, free: 6.738 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008942/0.562, allocations: 226.7 kB / 0.5211 GB, free: 6.566 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001003/0.563, allocations: 0.7624 MB / 0.5219 GB, free: 5.824 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001587/0.5646, allocations: 0.6251 MB / 0.5225 GB, free: 5.23 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006946/0.5654, allocations: 0.5852 MB / 0.5231 GB, free: 4.52 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.823e-05/0.5654, allocations: 42.06 kB / 0.5231 GB, free: 4.473 MB / 330.7 MB Notification: Performance of pre-optimization done (n=52): time 3.497e-06/0.5654, allocations: 0 / 0.5231 GB, free: 4.473 MB / 330.7 MB Notification: Performance of matching and sorting (n=52): time 0.001952/0.5674, allocations: 0.6009 MB / 0.5237 GB, free: 3.965 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001124/0.5675, allocations: 180.6 kB / 0.5239 GB, free: 3.762 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002909/0.5678, allocations: 225.4 kB / 0.5241 GB, free: 3.57 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.863e-05/0.5679, allocations: 33.52 kB / 0.5241 GB, free: 3.535 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.956e-05/0.568, allocations: 209.2 kB / 0.5243 GB, free: 3.359 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.73e-05/0.5681, allocations: 51.55 kB / 0.5244 GB, free: 3.32 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.235e-05/0.5681, allocations: 6.625 kB / 0.5244 GB, free: 3.32 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.06e-05/0.5682, allocations: 326 kB / 0.5247 GB, free: 3 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002871/0.5685, allocations: 94.19 kB / 0.5248 GB, free: 2.93 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004298/0.5689, allocations: 419.8 kB / 0.5252 GB, free: 2.391 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003827/0.5693, allocations: 164.4 kB / 0.5253 GB, free: 2.27 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.758e-06/0.5693, allocations: 11.95 kB / 0.5253 GB, free: 2.258 MB / 330.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001056/0.5704, allocations: 485.5 kB / 0.5258 GB, free: 1.863 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.408e-05/0.5704, allocations: 12 kB / 0.5258 GB, free: 1.852 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.643e-05/0.5705, allocations: 12 kB / 0.5258 GB, free: 1.84 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.301e-05/0.5705, allocations: 17.23 kB / 0.5258 GB, free: 1.824 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005793/0.5711, allocations: 127.1 kB / 0.526 GB, free: 1.703 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.155e-05/0.5711, allocations: 23.92 kB / 0.526 GB, free: 1.68 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003974/0.5715, allocations: 46.12 kB / 0.526 GB, free: 1.641 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.925e-05/0.5716, allocations: 38.06 kB / 0.5261 GB, free: 1.609 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 6 (sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[1],$CLKPRE.sample1.noise.seedState[1]) * Number of discrete states: 0 () * Number of clocked states: 4 (PI.x,sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.noise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 61 * 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 0.0002957/0.5719, allocations: 186.8 kB / 0.5262 GB, free: 1.445 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009451/0.5729, allocations: 348.7 kB / 0.5266 GB, free: 1.176 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001001/0.5739, allocations: 357.2 kB / 0.5269 GB, free: 0.9219 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.03e-05/0.5739, allocations: 4 kB / 0.5269 GB, free: 0.918 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.5739, allocations: 7.938 kB / 0.5269 GB, free: 0.9102 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.5739, allocations: 3.984 kB / 0.5269 GB, free: 0.9062 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000459/0.5744, allocations: 325.5 kB / 0.5272 GB, free: 0.5938 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.037e-05/0.5744, allocations: 0 / 0.5272 GB, free: 0.5938 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007174/0.5752, allocations: 107.8 kB / 0.5273 GB, free: 0.4922 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.137e-06/0.5752, allocations: 8 kB / 0.5274 GB, free: 496 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.459e-05/0.5752, allocations: 15.55 kB / 0.5274 GB, free: 488 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.913e-06/0.5752, allocations: 7.938 kB / 0.5274 GB, free: 480 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.5753, allocations: 0 / 0.5274 GB, free: 480 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002003/0.5773, allocations: 0.817 MB / 0.5282 GB, free: 15.77 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001299/0.5774, allocations: 116.2 kB / 0.5283 GB, free: 15.64 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.572e-05/0.5775, allocations: 14.94 kB / 0.5283 GB, free: 15.64 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004061/0.578, allocations: 35.16 kB / 0.5283 GB, free: 15.61 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.779e-05/0.578, allocations: 4 kB / 0.5283 GB, free: 15.61 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.557e-05/0.5781, allocations: 18.98 kB / 0.5284 GB, free: 15.59 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002551/0.5784, allocations: 175.3 kB / 0.5285 GB, free: 15.45 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5784, allocations: 0 / 0.5285 GB, free: 15.45 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007531/0.5791, allocations: 82.7 kB / 0.5286 GB, free: 15.38 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Number of clocked states: 4 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3],PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0002696/0.5794, allocations: 125.4 kB / 0.5287 GB, free: 15.26 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00117/0.5806, allocations: 355.8 kB / 0.5291 GB, free: 14.98 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.5806, allocations: 0 / 0.5291 GB, free: 14.98 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000185/0.5808, allocations: 39.91 kB / 0.5291 GB, free: 14.94 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001376/0.5822, allocations: 286.3 kB / 0.5294 GB, free: 14.71 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002597/0.5848, allocations: 0.9338 MB / 0.5303 GB, free: 13.82 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005047/0.5854, allocations: 0.8191 MB / 0.5311 GB, free: 12.98 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001587/0.5855, allocations: 38.88 kB / 0.5311 GB, free: 12.94 MB / 346.7 MB Notification: Performance of SimCode: time 1.222e-06/0.5856, allocations: 0 / 0.5311 GB, free: 12.94 MB / 346.7 MB Notification: Performance of Templates: time 0.01178/0.5973, allocations: 4.257 MB / 0.5353 GB, free: 8.727 MB / 346.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches