Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001749/0.001749, allocations: 112.5 kB / 20.43 MB, free: 1.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002139/0.002139, allocations: 212.3 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.447/1.447, allocations: 230.5 MB / 257.4 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001777/0.001777, allocations: 60.14 kB / 377.8 MB, free: 3.043 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2656/0.2674, allocations: 53.42 MB / 431.2 MB, free: 6.828 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.004553/0.2719, allocations: 2.724 MB / 433.9 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001795/0.2737, allocations: 0.9582 MB / 434.9 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002282/0.2739, allocations: 15.88 kB / 434.9 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002361/0.2742, allocations: 55.39 kB / 434.9 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002559/0.2744, allocations: 71.45 kB / 435 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006469/0.2751, allocations: 250.8 kB / 435.2 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000425/0.2755, allocations: 378.9 kB / 435.6 MB, free: 2.379 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000278/0.2758, allocations: 141.4 kB / 435.8 MB, free: 2.238 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001771/0.2759, allocations: 147.3 kB / 435.9 MB, free: 2.094 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000187/0.2761, allocations: 151.2 kB / 436 MB, free: 1.945 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.108e-05/0.2762, allocations: 32 kB / 436.1 MB, free: 1.914 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001264/0.2763, allocations: 67.95 kB / 436.1 MB, free: 1.848 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001097/0.2764, allocations: 83.75 kB / 436.2 MB, free: 1.766 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001575/0.2766, allocations: 163 kB / 436.4 MB, free: 1.605 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005307/0.2771, allocations: 418.5 kB / 436.8 MB, free: 1.199 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.2771, allocations: 4 kB / 436.8 MB, free: 1.195 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2771, allocations: 0 / 436.8 MB, free: 1.195 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.745e-06/0.2771, allocations: 0 / 436.8 MB, free: 1.195 MB / 334.1 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.001144/0.2783, allocations: 0.5752 MB / 437.4 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.2783, allocations: 8.031 kB / 437.4 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.149e-05/0.2784, allocations: 66.66 kB / 437.4 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.86e-05/0.2785, allocations: 44.7 kB / 437.5 MB, free: 472 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004955/0.279, allocations: 270 kB / 437.7 MB, free: 176 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.348e-05/0.279, allocations: 21.03 kB / 437.8 MB, free: 156 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.387e-05/0.2791, allocations: 40.06 kB / 437.8 MB, free: 116 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00134/0.2804, allocations: 0.7293 MB / 438.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.2804, allocations: 0 / 438.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.226e-05/0.2805, allocations: 16 kB / 438.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.115e-05/0.2805, allocations: 8 kB / 438.6 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005473/0.281, allocations: 219.8 kB / 438.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009232/0.2819, allocations: 0.7265 MB / 439.5 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001006/0.2829, allocations: 455.8 kB / 439.9 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004571/0.2834, allocations: 248.5 kB / 440.2 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004154/0.2838, allocations: 67.72 kB / 440.3 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.316e-05/0.2839, allocations: 50.48 kB / 440.3 MB, free: 13.47 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 3.807e-06/0.2839, allocations: 3.984 kB / 440.3 MB, free: 13.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.001192/0.2851, allocations: 0.5099 MB / 440.8 MB, free: 12.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001786/0.2852, allocations: 220 kB / 441 MB, free: 12.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002817/0.2855, allocations: 249.9 kB / 441.3 MB, free: 12.44 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.661e-05/0.2855, allocations: 37.7 kB / 441.3 MB, free: 12.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001371/0.2857, allocations: 148.9 kB / 441.5 MB, free: 12.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.229e-05/0.2857, allocations: 51.7 kB / 441.5 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001035/0.2858, allocations: 82.19 kB / 441.6 MB, free: 12.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001596/0.286, allocations: 342.8 kB / 441.9 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001893/0.2862, allocations: 88.94 kB / 442 MB, free: 11.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004529/0.2866, allocations: 434.1 kB / 442.4 MB, free: 11.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006351/0.2873, allocations: 0.5281 MB / 443 MB, free: 10.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/0.2873, allocations: 4 kB / 443 MB, free: 10.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007735/0.2881, allocations: 0.4938 MB / 443.5 MB, free: 9.891 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.316e-05/0.2881, allocations: 8 kB / 443.5 MB, free: 9.883 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.422e-05/0.2881, allocations: 12 kB / 443.5 MB, free: 9.871 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.451e-05/0.2881, allocations: 16 kB / 443.5 MB, free: 9.855 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003109/0.2884, allocations: 119.8 kB / 443.6 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.704e-05/0.2885, allocations: 27.86 kB / 443.6 MB, free: 9.711 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002501/0.2887, allocations: 47.73 kB / 443.7 MB, free: 9.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.814e-05/0.2888, allocations: 28 kB / 443.7 MB, free: 9.637 MB / 350.1 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 ($CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[1],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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002076/0.289, allocations: 200.6 kB / 443.9 MB, free: 9.434 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006492/0.2896, allocations: 348.9 kB / 444.3 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006753/0.2903, allocations: 360.7 kB / 444.6 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.144e-05/0.2903, allocations: 8 kB / 444.6 MB, free: 8.715 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.2903, allocations: 4 kB / 444.6 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.2903, allocations: 0 / 444.6 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003861/0.2907, allocations: 320.2 kB / 444.9 MB, free: 8.355 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.042e-06/0.2907, allocations: 480 / 444.9 MB, free: 8.355 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003754/0.2911, allocations: 99.88 kB / 445 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.803e-06/0.2911, allocations: 4 kB / 445 MB, free: 8.254 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.458e-05/0.2911, allocations: 8 kB / 445 MB, free: 8.246 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.2911, allocations: 4 kB / 445 MB, free: 8.242 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.2911, allocations: 0 / 445 MB, free: 8.242 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001228/0.2923, allocations: 0.7902 MB / 445.8 MB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.498e-05/0.2924, allocations: 43.72 kB / 445.9 MB, free: 7.383 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.19e-05/0.2925, allocations: 16 kB / 445.9 MB, free: 7.367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002441/0.2927, allocations: 31.97 kB / 445.9 MB, free: 7.336 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.951e-05/0.2927, allocations: 0 / 445.9 MB, free: 7.336 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.245e-05/0.2928, allocations: 19.98 kB / 445.9 MB, free: 7.316 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001679/0.2929, allocations: 177.2 kB / 446.1 MB, free: 7.145 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2929, allocations: 4.062 kB / 446.1 MB, free: 7.141 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005057/0.2934, allocations: 83.89 kB / 446.2 MB, free: 7.059 MB / 350.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001575/0.295, allocations: 1.34 MB / 447.5 MB, free: 5.684 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006635/0.2957, allocations: 349.4 kB / 447.9 MB, free: 5.348 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.2957, allocations: 256 / 447.9 MB, free: 5.348 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.574e-05/0.2958, allocations: 31.92 kB / 447.9 MB, free: 5.316 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009678/0.2967, allocations: 298.4 kB / 448.2 MB, free: 5.023 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004642/0.3014, allocations: 3.83 MB / 452 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004289/0.3018, allocations: 0.8081 MB / 452.8 MB, free: 15.93 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001054/0.3019, allocations: 35.28 kB / 452.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001529/0.3021, allocations: 115.4 kB / 453 MB, free: 15.78 MB / 366.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3021, allocations: 0 / 453 MB, free: 15.78 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04087/0.3429, allocations: 8.549 MB / 461.5 MB, free: 7.375 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/11.8, allocations: 13.81 kB / 461.6 MB, free: 7.367 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects_fmu --startTime=0 --stopTime=5 --stepSize=0.0009802 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWith_AD_DA_Effects/ClockedWith_AD_DA_Effects.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.25411486485973]