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) 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) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008378/0.0008376, allocations: 92.52 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001012/0.001012, allocations: 198.9 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.238/1.238, allocations: 227.8 MB / 246.8 MB, free: 11.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002379/0.0002378, allocations: 4 kB / 307.8 MB, free: 0.7266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0957/0.09596, allocations: 51.52 MB / 359.4 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.002788/0.09879, allocations: 2.354 MB / 361.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001463/0.1003, allocations: 0.9194 MB / 362.6 MB, free: 9.914 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002138/0.1005, allocations: 7.938 kB / 362.6 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001819/0.1007, allocations: 43.59 kB / 362.7 MB, free: 9.863 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002666/0.101, allocations: 47.62 kB / 362.7 MB, free: 9.816 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006201/0.1016, allocations: 203.4 kB / 362.9 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003756/0.102, allocations: 354.9 kB / 363.3 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002963/0.1023, allocations: 188.7 kB / 363.5 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001488/0.1025, allocations: 99.39 kB / 363.5 MB, free: 8.992 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001636/0.1026, allocations: 111.2 kB / 363.7 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.269e-05/0.1027, allocations: 12 kB / 363.7 MB, free: 8.871 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001066/0.1028, allocations: 51.95 kB / 363.7 MB, free: 8.82 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.964e-05/0.1029, allocations: 55.7 kB / 363.8 MB, free: 8.766 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001414/0.103, allocations: 152.8 kB / 363.9 MB, free: 8.609 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003439/0.1034, allocations: 374.8 kB / 364.3 MB, free: 8.242 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.1034, allocations: 0 / 364.3 MB, free: 8.242 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1034, allocations: 4 kB / 364.3 MB, free: 8.238 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.207e-06/0.1034, allocations: 0 / 364.3 MB, free: 8.238 MB / 302.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.0008684/0.1043, allocations: 0.5847 MB / 364.9 MB, free: 7.605 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.1043, allocations: 12.03 kB / 364.9 MB, free: 7.594 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.281e-05/0.1044, allocations: 66.73 kB / 365 MB, free: 7.52 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.52e-05/0.1045, allocations: 40.47 kB / 365 MB, free: 7.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003377/0.1048, allocations: 323.8 kB / 365.3 MB, free: 7.129 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.129e-05/0.1049, allocations: 20.94 kB / 365.3 MB, free: 7.105 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.49e-05/0.1049, allocations: 32.12 kB / 365.4 MB, free: 7.074 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001286/0.1062, allocations: 0.7715 MB / 366.1 MB, free: 6.266 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.816e-05/0.1062, allocations: 7.984 kB / 366.1 MB, free: 6.258 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.938e-05/0.1063, allocations: 12 kB / 366.2 MB, free: 6.246 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-06/0.1063, allocations: 4 kB / 366.2 MB, free: 6.242 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005608/0.1069, allocations: 247.8 kB / 366.4 MB, free: 6 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007346/0.1076, allocations: 0.7721 MB / 367.2 MB, free: 5.152 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009995/0.1086, allocations: 0.6548 MB / 367.8 MB, free: 4.422 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004643/0.1091, allocations: 287.4 kB / 368.1 MB, free: 4.129 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005422/0.1096, allocations: 0.5856 MB / 368.7 MB, free: 3.414 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.33e-05/0.1097, allocations: 50.28 kB / 368.7 MB, free: 3.355 MB / 302.1 MB Notification: Performance of pre-optimization done (n=52): time 1.753e-06/0.1097, allocations: 0 / 368.7 MB, free: 3.355 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.00116/0.1109, allocations: 0.5636 MB / 369.3 MB, free: 2.785 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001119/0.111, allocations: 211.9 kB / 369.5 MB, free: 2.535 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002277/0.1112, allocations: 254.8 kB / 369.8 MB, free: 2.277 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.775e-05/0.1112, allocations: 33.7 kB / 369.8 MB, free: 2.238 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.648e-05/0.1114, allocations: 152.7 kB / 369.9 MB, free: 2.086 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.473e-05/0.1114, allocations: 47.59 kB / 370 MB, free: 2.039 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.973e-05/0.1115, allocations: 45.69 kB / 370 MB, free: 1.988 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.1116, allocations: 346.8 kB / 370.4 MB, free: 1.641 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001799/0.1118, allocations: 89.06 kB / 370.5 MB, free: 1.555 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003557/0.1121, allocations: 435 kB / 370.9 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005619/0.1127, allocations: 0.5402 MB / 371.4 MB, free: 268 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.1127, allocations: 8 kB / 371.4 MB, free: 260 kB / 302.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.1525/0.2652, allocations: 0.4924 MB / 371.9 MB, free: 18.55 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.04e-05/0.2653, allocations: 12.02 kB / 371.9 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.101e-05/0.2653, allocations: 11.56 kB / 371.9 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.28e-05/0.2653, allocations: 18.44 kB / 372 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003497/0.2657, allocations: 122.5 kB / 372.1 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.866e-05/0.2657, allocations: 22.67 kB / 372.1 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002983/0.266, allocations: 56.25 kB / 372.2 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.367e-05/0.2661, allocations: 30.5 kB / 372.2 MB, free: 18.55 MB / 302.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.0002408/0.2663, allocations: 203.3 kB / 372.4 MB, free: 18.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006722/0.267, allocations: 363.4 kB / 372.7 MB, free: 18.39 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006969/0.2677, allocations: 376.2 kB / 373.1 MB, free: 18.35 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-06/0.2677, allocations: 6.141 kB / 373.1 MB, free: 18.35 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.2677, allocations: 0.6875 kB / 373.1 MB, free: 18.35 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.126e-06/0.2678, allocations: 4.625 kB / 373.1 MB, free: 18.35 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004296/0.2682, allocations: 340.6 kB / 373.5 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.077e-05/0.2682, allocations: 1.656 kB / 373.5 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003888/0.2686, allocations: 106.3 kB / 373.6 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.574e-06/0.2686, allocations: 5.047 kB / 373.6 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.849e-05/0.2687, allocations: 15.55 kB / 373.6 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.508e-06/0.2687, allocations: 2.5 kB / 373.6 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.2687, allocations: 5.375 kB / 373.6 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00128/0.27, allocations: 0.8186 MB / 374.4 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.824e-05/0.27, allocations: 119.9 kB / 374.5 MB, free: 17.77 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5e-05/0.2701, allocations: 17.61 kB / 374.5 MB, free: 17.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00025/0.2704, allocations: 36.67 kB / 374.6 MB, free: 17.77 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.767e-05/0.2704, allocations: 5.406 kB / 374.6 MB, free: 17.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.86e-05/0.2704, allocations: 14.38 kB / 374.6 MB, free: 17.77 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001731/0.2706, allocations: 186.1 kB / 374.8 MB, free: 17.69 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.91e-07/0.2706, allocations: 4.844 kB / 374.8 MB, free: 17.69 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007221/0.2713, allocations: 75.81 kB / 374.9 MB, free: 17.68 MB / 302.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.001424/0.2728, allocations: 1.377 MB / 376.2 MB, free: 16.9 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008566/0.2736, allocations: 376.1 kB / 376.6 MB, free: 16.86 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.2737, allocations: 0 / 376.6 MB, free: 16.86 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001155/0.2738, allocations: 34.38 kB / 376.6 MB, free: 16.86 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001284/0.2751, allocations: 320.5 kB / 377 MB, free: 16.79 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004702/0.2798, allocations: 4.026 MB / 381 MB, free: 13.95 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002921/0.2801, allocations: 0.8131 MB / 381.8 MB, free: 13.24 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001323/0.2802, allocations: 41.83 kB / 381.8 MB, free: 13.23 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000139/0.2804, allocations: 106.6 kB / 381.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of SimCode: time 7.71e-07/0.2804, allocations: 0 / 381.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01931/0.2997, allocations: 7.397 MB / 389.3 MB, free: 11.39 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001523/0.2999, allocations: 232.9 kB / 389.6 MB, free: 11.13 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.899/2.199, allocations: 0 / 389.6 MB, free: 11.13 MB / 302.1 MB (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 --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) 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.0.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) Reference file matches