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.001784/0.001784, allocations: 120.4 kB / 18.5 MB, free: 4.578 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.001939/0.001939, allocations: 208.9 kB / 21.46 MB, free: 1.625 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.409/1.409, allocations: 230.2 MB / 254.5 MB, free: 15.25 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.001833/0.001833, allocations: 63.89 kB / 373.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1029, allocations: 53.32 MB / 426.6 MB, free: 5.016 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.0041/0.107, allocations: 2.709 MB / 429.4 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001653/0.1087, allocations: 0.9466 MB / 430.3 MB, free: 1.344 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001889/0.1089, allocations: 15.94 kB / 430.3 MB, free: 1.328 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002281/0.1091, allocations: 63.38 kB / 430.4 MB, free: 1.266 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002476/0.1094, allocations: 67.45 kB / 430.4 MB, free: 1.199 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007147/0.1101, allocations: 231.5 kB / 430.7 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004393/0.1105, allocations: 374.9 kB / 431 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002797/0.1108, allocations: 148.8 kB / 431.2 MB, free: 468 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001657/0.111, allocations: 131.4 kB / 431.3 MB, free: 336 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001866/0.1111, allocations: 151.2 kB / 431.5 MB, free: 184 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.008e-05/0.1112, allocations: 32 kB / 431.5 MB, free: 152 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001209/0.1113, allocations: 67.97 kB / 431.6 MB, free: 84 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2047/0.316, allocations: 84.25 kB / 431.6 MB, free: 8.012 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003379/0.3164, allocations: 158.7 kB / 431.8 MB, free: 8.004 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007365/0.3171, allocations: 416.5 kB / 432.2 MB, free: 7.938 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.3171, allocations: 0 / 432.2 MB, free: 7.938 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.644e-06/0.3171, allocations: 0.5312 kB / 432.2 MB, free: 7.938 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.075e-06/0.3171, allocations: 0 / 432.2 MB, free: 7.938 MB / 350.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.001043/0.3182, allocations: 0.6573 MB / 432.9 MB, free: 7.465 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.3182, allocations: 9.125 kB / 432.9 MB, free: 7.465 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.1e-05/0.3183, allocations: 62.75 kB / 432.9 MB, free: 7.426 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.797e-05/0.3184, allocations: 39.95 kB / 433 MB, free: 7.406 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003982/0.3188, allocations: 346.1 kB / 433.3 MB, free: 7.168 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.208e-05/0.3188, allocations: 22.06 kB / 433.3 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.69e-05/0.3188, allocations: 27.19 kB / 433.3 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001197/0.32, allocations: 0.7417 MB / 434.1 MB, free: 6.992 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.977e-05/0.3201, allocations: 6.281 kB / 434.1 MB, free: 6.992 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.541e-05/0.3201, allocations: 8.406 kB / 434.1 MB, free: 6.992 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.357e-06/0.3201, allocations: 10.38 kB / 434.1 MB, free: 6.992 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004718/0.3206, allocations: 222.2 kB / 434.3 MB, free: 6.992 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006907/0.3213, allocations: 0.767 MB / 435.1 MB, free: 6.457 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009312/0.3222, allocations: 0.5926 MB / 435.7 MB, free: 6.172 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004183/0.3226, allocations: 240.5 kB / 435.9 MB, free: 6.137 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000512/0.3231, allocations: 0.6007 MB / 436.5 MB, free: 5.469 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.674e-05/0.3231, allocations: 37.09 kB / 436.6 MB, free: 5.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 1.834e-06/0.3231, allocations: 0 / 436.6 MB, free: 5.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.001151/0.3243, allocations: 0.5317 MB / 437.1 MB, free: 5.363 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.592e-05/0.3244, allocations: 210 kB / 437.3 MB, free: 5.145 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002442/0.3246, allocations: 248.7 kB / 437.5 MB, free: 5.039 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.519e-05/0.3247, allocations: 35.73 kB / 437.6 MB, free: 5.008 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.436e-05/0.3247, allocations: 155.8 kB / 437.7 MB, free: 4.906 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.555e-05/0.3248, allocations: 50.45 kB / 437.8 MB, free: 4.887 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.265e-05/0.3249, allocations: 89.59 kB / 437.9 MB, free: 4.867 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.977e-05/0.325, allocations: 345.8 kB / 438.2 MB, free: 4.555 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001814/0.3251, allocations: 84 kB / 438.3 MB, free: 4.551 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002984/0.3254, allocations: 431.9 kB / 438.7 MB, free: 4.102 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004589/0.3259, allocations: 0.5293 MB / 439.2 MB, free: 3.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.794e-06/0.3259, allocations: 3.281 kB / 439.2 MB, free: 3.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007239/0.3266, allocations: 0.4927 MB / 439.7 MB, free: 3.598 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.015e-05/0.3267, allocations: 12.22 kB / 439.7 MB, free: 3.598 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.487e-05/0.3267, allocations: 11.78 kB / 439.8 MB, free: 3.598 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.818e-05/0.3267, allocations: 15.12 kB / 439.8 MB, free: 3.598 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003088/0.327, allocations: 120.4 kB / 439.9 MB, free: 3.598 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.527e-05/0.327, allocations: 26.11 kB / 439.9 MB, free: 3.598 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002485/0.3273, allocations: 56.16 kB / 440 MB, free: 3.574 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.233e-05/0.3273, allocations: 30.33 kB / 440 MB, free: 3.574 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.0001561/0.3275, allocations: 186.5 kB / 440.2 MB, free: 3.453 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005728/0.328, allocations: 346.5 kB / 440.5 MB, free: 3.391 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006331/0.3287, allocations: 358.2 kB / 440.9 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.627e-06/0.3287, allocations: 8.594 kB / 440.9 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.3287, allocations: 1.094 kB / 440.9 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/0.3287, allocations: 3.781 kB / 440.9 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003649/0.3291, allocations: 342.8 kB / 441.2 MB, free: 3.094 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.087e-06/0.3291, allocations: 8.656 kB / 441.2 MB, free: 3.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003804/0.3294, allocations: 100.2 kB / 441.3 MB, free: 3.086 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-06/0.3295, allocations: 6.156 kB / 441.3 MB, free: 3.082 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.494e-05/0.3295, allocations: 9.844 kB / 441.3 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.881e-06/0.3295, allocations: 6.922 kB / 441.3 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.3295, allocations: 1.25 kB / 441.3 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001126/0.3306, allocations: 0.7755 MB / 442.1 MB, free: 2.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.065e-05/0.3307, allocations: 126 kB / 442.2 MB, free: 2.531 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.15e-05/0.3307, allocations: 14.95 kB / 442.3 MB, free: 2.523 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002383/0.331, allocations: 28.3 kB / 442.3 MB, free: 2.516 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.641e-05/0.331, allocations: 9 kB / 442.3 MB, free: 2.512 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.11e-05/0.331, allocations: 15.39 kB / 442.3 MB, free: 2.508 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001538/0.3312, allocations: 180 kB / 442.5 MB, free: 2.402 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3312, allocations: 0 / 442.5 MB, free: 2.402 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005221/0.3317, allocations: 78.3 kB / 442.6 MB, free: 2.383 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.001445/0.3332, allocations: 1.354 MB / 443.9 MB, free: 1.414 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007026/0.3339, allocations: 347.2 kB / 444.3 MB, free: 1.348 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.3339, allocations: 1.062 kB / 444.3 MB, free: 1.348 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.313e-05/0.334, allocations: 28.75 kB / 444.3 MB, free: 1.344 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009635/0.3349, allocations: 302.3 kB / 444.6 MB, free: 1.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004587/0.3395, allocations: 3.831 MB / 448.4 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004663/0.34, allocations: 0.8129 MB / 449.2 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001261/0.3401, allocations: 40.45 kB / 449.3 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001689/0.3403, allocations: 117.7 kB / 449.4 MB, free: 13.48 MB / 366.1 MB Notification: Performance of SimCode: time 7.12e-07/0.3403, allocations: 0 / 449.4 MB, free: 13.48 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03745/0.3777, allocations: 8.109 MB / 457.5 MB, free: 11.59 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.203/8.581, allocations: 23.25 kB / 457.5 MB, free: 11.57 MB / 366.1 MB " [Timeout remaining time 651] (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_2/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_2/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: 11.021151516586542]