Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00112/0.00112, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009372/0.0009372, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9128/0.9128, allocations: 173.4 MB / 200.4 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,fileNamePrefix="Modelica_4_0_0_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_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.753e-06/1.753e-06, allocations: 0 / 318.4 MB, free: 6.363 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.217e-05/2.393e-05, allocations: 2.281 kB / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.002956/0.00298, allocations: 2.529 MB / 320.9 MB, free: 3.809 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001168/0.004148, allocations: 0.8724 MB / 321.8 MB, free: 2.934 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001544/0.004302, allocations: 11.94 kB / 321.8 MB, free: 2.922 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001846/0.004487, allocations: 63.27 kB / 321.9 MB, free: 2.859 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002582/0.004745, allocations: 71.38 kB / 322 MB, free: 2.789 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005217/0.005266, allocations: 259 kB / 322.2 MB, free: 2.539 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003006/0.005567, allocations: 382.8 kB / 322.6 MB, free: 2.164 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002144/0.005781, allocations: 133.4 kB / 322.7 MB, free: 2.031 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003121/0.006093, allocations: 199.5 kB / 322.9 MB, free: 1.836 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001269/0.00622, allocations: 107.6 kB / 323 MB, free: 1.73 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.793e-05/0.006258, allocations: 32 kB / 323 MB, free: 1.699 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001027/0.006361, allocations: 67.97 kB / 323.1 MB, free: 1.633 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.725e-05/0.006458, allocations: 83.61 kB / 323.2 MB, free: 1.551 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.982e-05/0.006538, allocations: 111.7 kB / 323.3 MB, free: 1.441 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003636/0.006902, allocations: 422.6 kB / 323.7 MB, free: 1.027 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.006905, allocations: 4 kB / 323.7 MB, free: 1.023 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.452e-06/0.006907, allocations: 0 / 323.7 MB, free: 1.023 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.169e-06/0.006912, allocations: 4 kB / 323.7 MB, free: 1.02 MB / 282.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.0007422/0.007654, allocations: 0.5597 MB / 324.3 MB, free: 436 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.007694, allocations: 12.92 kB / 324.3 MB, free: 424 kB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.344e-05/0.007747, allocations: 66.72 kB / 324.4 MB, free: 348 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.643e-05/0.007804, allocations: 48.66 kB / 324.4 MB, free: 300 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003671/0.008171, allocations: 273.2 kB / 324.7 MB, free: 15.99 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.114e-05/0.008192, allocations: 21.03 kB / 324.7 MB, free: 15.97 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.677e-05/0.008229, allocations: 32.33 kB / 324.7 MB, free: 15.94 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008948/0.009124, allocations: 0.7892 MB / 325.5 MB, free: 15.11 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.838e-05/0.009142, allocations: 7.938 kB / 325.5 MB, free: 15.1 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.242e-05/0.009164, allocations: 11.98 kB / 325.5 MB, free: 15.09 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.794e-06/0.009172, allocations: 8 kB / 325.5 MB, free: 15.08 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003205/0.009493, allocations: 215.8 kB / 325.8 MB, free: 14.87 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006238/0.01012, allocations: 0.6526 MB / 326.4 MB, free: 14.16 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000661/0.01078, allocations: 460.6 kB / 326.9 MB, free: 13.67 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002633/0.01104, allocations: 248.7 kB / 327.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00026/0.0113, allocations: 63.92 kB / 327.2 MB, free: 13.35 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.306e-05/0.01133, allocations: 42.5 kB / 327.2 MB, free: 13.3 MB / 298.7 MB Notification: Performance of pre-optimization done (n=52): time 2.404e-06/0.01134, allocations: 4 kB / 327.2 MB, free: 13.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=52): time 0.0007572/0.01209, allocations: 0.5242 MB / 327.7 MB, free: 12.77 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000113/0.01221, allocations: 211.9 kB / 327.9 MB, free: 12.52 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002001/0.01241, allocations: 254 kB / 328.2 MB, free: 12.26 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.413e-05/0.01243, allocations: 37.64 kB / 328.2 MB, free: 12.21 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.834e-05/0.01251, allocations: 152.8 kB / 328.4 MB, free: 12.07 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.01e-05/0.01254, allocations: 43.78 kB / 328.4 MB, free: 12.02 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.437e-05/0.01258, allocations: 37.64 kB / 328.5 MB, free: 11.98 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.428e-05/0.01267, allocations: 330.8 kB / 328.8 MB, free: 11.65 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.314e-05/0.01274, allocations: 47.97 kB / 328.8 MB, free: 11.6 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001209/0.01286, allocations: 182.5 kB / 329 MB, free: 11.37 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001598/0.01302, allocations: 165.3 kB / 329.2 MB, free: 11.18 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.01303, allocations: 4 kB / 329.2 MB, free: 11.17 MB / 298.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002207/0.01325, allocations: 209.2 kB / 329.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.01326, allocations: 10.44 kB / 329.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/0.01327, allocations: 4 kB / 329.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.01328, allocations: 4 kB / 329.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.096e-05/0.01337, allocations: 44.22 kB / 329.4 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.503e-06/0.01338, allocations: 4 kB / 329.4 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.224e-05/0.01345, allocations: 19.94 kB / 329.5 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.558e-06/0.01346, allocations: 8 kB / 329.5 MB, free: 10.87 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (18): * Single equations (assignments): 18 * 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.0001247/0.01359, allocations: 162.1 kB / 329.6 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005356/0.01412, allocations: 346.2 kB / 330 MB, free: 10.36 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004273/0.01455, allocations: 365.2 kB / 330.3 MB, free: 9.992 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.01455, allocations: 4 kB / 330.3 MB, free: 9.988 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.01456, allocations: 4 kB / 330.3 MB, free: 9.984 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.022e-06/0.01457, allocations: 3.984 kB / 330.3 MB, free: 9.98 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002404/0.01481, allocations: 252.4 kB / 330.6 MB, free: 9.691 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.652e-06/0.01481, allocations: 11.94 kB / 330.6 MB, free: 9.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002032/0.01502, allocations: 99.88 kB / 330.7 MB, free: 9.582 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.868e-06/0.01502, allocations: 7.938 kB / 330.7 MB, free: 9.574 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.717e-05/0.01504, allocations: 11.94 kB / 330.7 MB, free: 9.562 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.01504, allocations: 7.984 kB / 330.7 MB, free: 9.555 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.01504, allocations: 0 / 330.7 MB, free: 9.555 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007491/0.01579, allocations: 0.7691 MB / 331.5 MB, free: 8.766 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.694e-05/0.01583, allocations: 43.72 kB / 331.5 MB, free: 8.723 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.429e-05/0.01586, allocations: 19.94 kB / 331.5 MB, free: 8.703 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001222/0.01599, allocations: 23.97 kB / 331.6 MB, free: 8.68 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.496e-05/0.01602, allocations: 11.92 kB / 331.6 MB, free: 8.668 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.082e-05/0.01604, allocations: 12 kB / 331.6 MB, free: 8.656 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001086/0.01615, allocations: 181.2 kB / 331.8 MB, free: 8.477 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01615, allocations: 0 / 331.8 MB, free: 8.477 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002726/0.01642, allocations: 63.89 kB / 331.8 MB, free: 8.414 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 (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.0009727/0.0174, allocations: 1.348 MB / 333.2 MB, free: 7.039 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003195/0.01772, allocations: 227.1 kB / 333.4 MB, free: 6.816 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.01772, allocations: 0 / 333.4 MB, free: 6.816 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.814e-05/0.01777, allocations: 35.91 kB / 333.4 MB, free: 6.781 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006679/0.01843, allocations: 303 kB / 333.7 MB, free: 6.48 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002354/0.02079, allocations: 2.79 MB / 336.5 MB, free: 3.527 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001307/0.02092, allocations: 209.7 kB / 336.7 MB, free: 3.305 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.644e-05/0.02097, allocations: 22.98 kB / 336.7 MB, free: 3.281 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001101/0.02108, allocations: 108.5 kB / 336.9 MB, free: 3.176 MB / 298.7 MB Notification: Performance of SimCode: time 9.22e-07/0.02109, allocations: 0 / 336.9 MB, free: 3.176 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0265/0.04759, allocations: 8.681 MB / 345.5 MB, free: 10.68 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.913/6.961, allocations: 11.92 kB / 345.5 MB, free: 10.67 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects_fmu --startTime=0 --stopTime=5 --stepSize=0.0009802 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 8.7366829989478]