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.00145/0.00145, allocations: 104.8 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001168/0.001169, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.288/1.288, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001113/0.001113, allocations: 59.81 kB / 306.4 MB, free: 0.9609 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08759/0.08872, allocations: 50.52 MB / 356.9 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.0044/0.09316, allocations: 2.738 MB / 359.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001638/0.09483, allocations: 0.935 MB / 360.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000168/0.09501, allocations: 11.94 kB / 360.6 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002129/0.09525, allocations: 43.59 kB / 360.6 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000216/0.09547, allocations: 43.64 kB / 360.6 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006616/0.09614, allocations: 207.7 kB / 360.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005522/0.0967, allocations: 354.9 kB / 361.2 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003663/0.09708, allocations: 184.7 kB / 361.4 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001501/0.09723, allocations: 123.4 kB / 361.5 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002508/0.09749, allocations: 143.2 kB / 361.6 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.52e-05/0.09754, allocations: 16 kB / 361.6 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001172/0.09767, allocations: 55.97 kB / 361.7 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001156/0.09779, allocations: 71.67 kB / 361.8 MB, free: 9.516 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001372/0.09793, allocations: 143.1 kB / 361.9 MB, free: 9.375 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000381/0.09832, allocations: 382.9 kB / 362.3 MB, free: 9 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.09834, allocations: 7.938 kB / 362.3 MB, free: 8.992 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.09834, allocations: 4 kB / 362.3 MB, free: 8.988 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.09836, allocations: 0 / 362.3 MB, free: 8.988 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.001056/0.09942, allocations: 0.6275 MB / 362.9 MB, free: 8.312 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.553e-05/0.09949, allocations: 12.03 kB / 362.9 MB, free: 8.301 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.28e-05/0.09957, allocations: 70.66 kB / 363 MB, free: 8.223 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.095e-05/0.09965, allocations: 40.47 kB / 363 MB, free: 8.184 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004021/0.1001, allocations: 323.9 kB / 363.4 MB, free: 7.832 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.617e-05/0.1001, allocations: 28.94 kB / 363.4 MB, free: 7.801 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.298e-05/0.1001, allocations: 32.12 kB / 363.4 MB, free: 7.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001325/0.1015, allocations: 0.7442 MB / 364.2 MB, free: 6.988 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.441e-05/0.1015, allocations: 0 / 364.2 MB, free: 6.988 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.126e-05/0.1015, allocations: 12 kB / 364.2 MB, free: 6.977 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.788e-06/0.1015, allocations: 8 kB / 364.2 MB, free: 6.969 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000592/0.1021, allocations: 215.8 kB / 364.4 MB, free: 6.758 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009287/0.1031, allocations: 0.7761 MB / 365.2 MB, free: 5.906 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00111/0.1042, allocations: 0.623 MB / 365.8 MB, free: 5.207 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004313/0.1046, allocations: 271.3 kB / 366.1 MB, free: 4.93 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007159/0.1054, allocations: 0.5895 MB / 366.6 MB, free: 4.211 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.014e-05/0.1054, allocations: 46.28 kB / 366.7 MB, free: 4.156 MB / 302.1 MB Notification: Performance of pre-optimization done (n=52): time 2.024e-06/0.1054, allocations: 4 kB / 366.7 MB, free: 4.152 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.001215/0.1066, allocations: 0.5213 MB / 367.2 MB, free: 3.625 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001255/0.1068, allocations: 211.9 kB / 367.4 MB, free: 3.375 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002367/0.107, allocations: 250.6 kB / 367.7 MB, free: 3.121 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.868e-05/0.1071, allocations: 33.7 kB / 367.7 MB, free: 3.082 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001026/0.1072, allocations: 152.7 kB / 367.9 MB, free: 2.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.38e-05/0.1072, allocations: 47.59 kB / 367.9 MB, free: 2.883 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.14e-05/0.1073, allocations: 82.25 kB / 368 MB, free: 2.797 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.1075, allocations: 350.8 kB / 368.3 MB, free: 2.445 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000177/0.1076, allocations: 85.06 kB / 368.4 MB, free: 2.359 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003841/0.108, allocations: 435 kB / 368.8 MB, free: 1.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006426/0.1087, allocations: 0.5242 MB / 369.4 MB, free: 1.082 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.1087, allocations: 4 kB / 369.4 MB, free: 1.078 MB / 302.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007545/0.1095, allocations: 0.4895 MB / 369.8 MB, free: 0.582 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.989e-05/0.1095, allocations: 12 kB / 369.9 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/0.1095, allocations: 12 kB / 369.9 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.419e-05/0.1095, allocations: 16 kB / 369.9 MB, free: 0.543 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003165/0.1098, allocations: 119.8 kB / 370 MB, free: 436 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.88e-05/0.1099, allocations: 23.86 kB / 370 MB, free: 412 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002445/0.1101, allocations: 59.66 kB / 370.1 MB, free: 352 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.853e-05/0.1102, allocations: 32.28 kB / 370.1 MB, free: 320 kB / 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.0001861/0.1104, allocations: 193.5 kB / 370.3 MB, free: 116 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.1598/0.2702, allocations: 340.1 kB / 370.6 MB, free: 20.37 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007397/0.271, allocations: 357.3 kB / 371 MB, free: 20.33 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.044e-05/0.271, allocations: 7.156 kB / 371 MB, free: 20.33 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.271, allocations: 1.062 kB / 371 MB, free: 20.33 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.057e-06/0.271, allocations: 3.75 kB / 371 MB, free: 20.33 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004577/0.2715, allocations: 341.8 kB / 371.3 MB, free: 20.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.067e-06/0.2715, allocations: 1.984 kB / 371.3 MB, free: 20.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004028/0.2719, allocations: 106 kB / 371.4 MB, free: 20.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.422e-06/0.2719, allocations: 2.219 kB / 371.4 MB, free: 20.14 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.679e-05/0.2719, allocations: 13.38 kB / 371.5 MB, free: 20.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.272e-06/0.272, allocations: 1.875 kB / 371.5 MB, free: 20.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.449e-06/0.272, allocations: 2.453 kB / 371.5 MB, free: 20.14 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001219/0.2732, allocations: 0.7782 MB / 372.2 MB, free: 19.9 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.349e-05/0.2733, allocations: 122.9 kB / 372.4 MB, free: 19.8 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.231e-05/0.2733, allocations: 13.77 kB / 372.4 MB, free: 19.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002486/0.2736, allocations: 32.02 kB / 372.4 MB, free: 19.8 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.667e-05/0.2736, allocations: 7.688 kB / 372.4 MB, free: 19.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.06e-05/0.2737, allocations: 12.11 kB / 372.4 MB, free: 19.8 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001831/0.2738, allocations: 184.4 kB / 372.6 MB, free: 19.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2739, allocations: 0 / 372.6 MB, free: 19.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005194/0.2744, allocations: 72.97 kB / 372.7 MB, free: 19.73 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.001421/0.2758, allocations: 1.349 MB / 374 MB, free: 18.81 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006764/0.2765, allocations: 355 kB / 374.4 MB, free: 18.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.2765, allocations: 1.562 kB / 374.4 MB, free: 18.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.35e-05/0.2766, allocations: 31.33 kB / 374.4 MB, free: 18.72 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009231/0.2775, allocations: 310 kB / 374.7 MB, free: 18.6 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003774/0.2813, allocations: 3.948 MB / 378.6 MB, free: 15.46 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002645/0.2816, allocations: 0.8111 MB / 379.5 MB, free: 14.76 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001229/0.2817, allocations: 39 kB / 379.5 MB, free: 14.75 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001318/0.2819, allocations: 111.5 kB / 379.6 MB, free: 14.67 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2819, allocations: 0 / 379.6 MB, free: 14.67 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01931/0.3012, allocations: 7.496 MB / 387.1 MB, free: 12.92 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001526/0.3014, allocations: 237.7 kB / 387.3 MB, free: 12.66 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.855/2.157, allocations: 6.734 kB / 387.3 MB, free: 12.66 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