Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009757/0.0009757, allocations: 202.4 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.278/1.278, allocations: 226.6 MB / 244.7 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007162/0.0007165, allocations: 96.02 kB / 296.8 MB, free: 6.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002227/0.0002227, allocations: 15.97 kB / 356.7 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.2631, allocations: 51.29 MB / 408 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.002604/0.2658, allocations: 2.26 MB / 410.3 MB, free: 25.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00142/0.2672, allocations: 0.8798 MB / 411.2 MB, free: 24.58 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002041/0.2674, allocations: 14.72 kB / 411.2 MB, free: 24.57 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001756/0.2676, allocations: 43.58 kB / 411.2 MB, free: 24.53 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000204/0.2678, allocations: 35.72 kB / 411.3 MB, free: 24.49 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006518/0.2685, allocations: 190.3 kB / 411.4 MB, free: 24.31 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002983/0.2688, allocations: 339.5 kB / 411.8 MB, free: 23.98 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002897/0.2691, allocations: 180.9 kB / 412 MB, free: 23.8 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001212/0.2692, allocations: 95.44 kB / 412 MB, free: 23.71 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001505/0.2694, allocations: 115.3 kB / 412.2 MB, free: 23.6 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.353e-05/0.2694, allocations: 8 kB / 412.2 MB, free: 23.59 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001031/0.2695, allocations: 47.95 kB / 412.2 MB, free: 23.54 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.626e-05/0.2696, allocations: 51.7 kB / 412.3 MB, free: 23.49 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001056/0.2697, allocations: 140.9 kB / 412.4 MB, free: 23.35 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002304/0.27, allocations: 304.2 kB / 412.7 MB, free: 23.05 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.27, allocations: 0 / 412.7 MB, free: 23.05 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.27, allocations: 0 / 412.7 MB, free: 23.05 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.65e-06/0.27, allocations: 4 kB / 412.7 MB, free: 23.05 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.0008686/0.2709, allocations: 0.5885 MB / 413.3 MB, free: 22.41 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.2709, allocations: 12.03 kB / 413.3 MB, free: 22.4 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.678e-05/0.271, allocations: 40.47 kB / 413.3 MB, free: 22.36 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003642/0.2714, allocations: 320 kB / 413.7 MB, free: 22.01 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.595e-05/0.2714, allocations: 24.88 kB / 413.7 MB, free: 21.98 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.31e-05/0.2715, allocations: 28.38 kB / 413.7 MB, free: 21.96 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001189/0.2727, allocations: 0.7676 MB / 414.5 MB, free: 21.16 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.2727, allocations: 0 / 414.5 MB, free: 21.16 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.958e-05/0.2727, allocations: 12 kB / 414.5 MB, free: 21.14 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.769e-06/0.2727, allocations: 8 kB / 414.5 MB, free: 21.14 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004859/0.2732, allocations: 251.5 kB / 414.7 MB, free: 20.89 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006918/0.2739, allocations: 0.772 MB / 415.5 MB, free: 20.04 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009102/0.2749, allocations: 0.6498 MB / 416.2 MB, free: 19.32 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003804/0.2752, allocations: 271.8 kB / 416.4 MB, free: 19.04 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005073/0.2758, allocations: 0.5973 MB / 417 MB, free: 18.31 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.541e-05/0.2758, allocations: 42.56 kB / 417.1 MB, free: 18.26 MB / 298.7 MB Notification: Performance of pre-optimization done (n=52): time 1.954e-06/0.2758, allocations: 3.938 kB / 417.1 MB, free: 18.26 MB / 298.7 MB Notification: Performance of matching and sorting (n=52): time 0.00109/0.2769, allocations: 0.5524 MB / 417.6 MB, free: 17.7 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001048/0.277, allocations: 219.8 kB / 417.8 MB, free: 17.44 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002061/0.2772, allocations: 246.6 kB / 418.1 MB, free: 17.19 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.431e-05/0.2773, allocations: 33.7 kB / 418.1 MB, free: 17.15 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.234e-05/0.2773, allocations: 156.8 kB / 418.3 MB, free: 17 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.515e-05/0.2774, allocations: 55.67 kB / 418.3 MB, free: 16.94 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.243e-05/0.2774, allocations: 8 kB / 418.3 MB, free: 16.93 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.718e-05/0.2775, allocations: 346.8 kB / 418.7 MB, free: 16.59 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001593/0.2776, allocations: 93.06 kB / 418.8 MB, free: 16.5 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002593/0.2779, allocations: 435 kB / 419.2 MB, free: 15.91 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004224/0.2783, allocations: 0.5398 MB / 419.7 MB, free: 15.2 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.449e-06/0.2784, allocations: 0 / 419.7 MB, free: 15.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0006137/0.279, allocations: 0.497 MB / 420.2 MB, free: 14.7 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.845e-05/0.279, allocations: 15.94 kB / 420.2 MB, free: 14.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.279, allocations: 12 kB / 420.2 MB, free: 14.67 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.085e-05/0.279, allocations: 16 kB / 420.3 MB, free: 14.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002698/0.2793, allocations: 120.4 kB / 420.4 MB, free: 14.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.898e-05/0.2793, allocations: 27.92 kB / 420.4 MB, free: 14.51 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002307/0.2796, allocations: 59.52 kB / 420.5 MB, free: 14.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.7e-05/0.2796, allocations: 32 kB / 420.5 MB, free: 14.42 MB / 298.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.0001572/0.2798, allocations: 183.2 kB / 420.7 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005471/0.2803, allocations: 361.2 kB / 421 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005899/0.2809, allocations: 374.5 kB / 421.4 MB, free: 13.5 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.281, allocations: 11.98 kB / 421.4 MB, free: 13.49 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.281, allocations: 3.984 kB / 421.4 MB, free: 13.48 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.281, allocations: 7.984 kB / 421.4 MB, free: 13.48 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002923/0.2813, allocations: 337 kB / 421.7 MB, free: 13.1 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.2813, allocations: 4 kB / 421.8 MB, free: 13.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003489/0.2816, allocations: 111.8 kB / 421.9 MB, free: 12.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.2817, allocations: 4 kB / 421.9 MB, free: 12.98 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.653e-05/0.2817, allocations: 11.98 kB / 421.9 MB, free: 12.97 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.2817, allocations: 0 / 421.9 MB, free: 12.97 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.2817, allocations: 4 kB / 421.9 MB, free: 12.96 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001082/0.2828, allocations: 0.8176 MB / 422.7 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.649e-05/0.2829, allocations: 116.6 kB / 422.8 MB, free: 11.99 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.912e-05/0.2829, allocations: 19.98 kB / 422.8 MB, free: 11.97 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002279/0.2832, allocations: 31.98 kB / 422.9 MB, free: 11.94 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.071e-05/0.2832, allocations: 12.05 kB / 422.9 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.933e-05/0.2832, allocations: 16 kB / 422.9 MB, free: 11.91 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001575/0.2834, allocations: 174 kB / 423.1 MB, free: 11.74 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2834, allocations: 0 / 423.1 MB, free: 11.74 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004928/0.2839, allocations: 83.89 kB / 423.1 MB, free: 11.66 MB / 298.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.0001825/0.2841, allocations: 117.8 kB / 423.3 MB, free: 11.54 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007058/0.2848, allocations: 376.3 kB / 423.6 MB, free: 11.17 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.2848, allocations: 1.438 kB / 423.6 MB, free: 11.17 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.192e-05/0.2849, allocations: 39.91 kB / 423.7 MB, free: 11.13 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009218/0.2859, allocations: 316.4 kB / 424 MB, free: 10.82 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001294/0.2872, allocations: 0.9163 MB / 424.9 MB, free: 9.863 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002667/0.2874, allocations: 0.8161 MB / 425.7 MB, free: 9.02 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.029e-05/0.2875, allocations: 31.44 kB / 425.7 MB, free: 8.988 MB / 298.7 MB Notification: Performance of SimCode: time 3.81e-07/0.2875, allocations: 4 kB / 425.7 MB, free: 8.984 MB / 298.7 MB Notification: Performance of Templates: time 0.005955/0.2935, allocations: 4.411 MB / 430.2 MB, free: 4.594 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWith_AD_DA_Effects/ClockedWith_AD_DA_Effects.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches