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.001489/0.001489, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 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.001544/0.001544, allocations: 184.4 kB / 23.72 MB, free: 4.699 MB / 14.72 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 1.441/1.441, allocations: 225.6 MB / 252.5 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001687/0.001687, allocations: 51.92 kB / 370.4 MB, free: 9.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2988/0.3005, allocations: 52.19 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.004634/0.3052, allocations: 2.718 MB / 425.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001821/0.307, allocations: 0.9271 MB / 426.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002147/0.3072, allocations: 15.88 kB / 426.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002253/0.3074, allocations: 59.33 kB / 426.3 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002595/0.3077, allocations: 63.52 kB / 426.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008265/0.3085, allocations: 254 kB / 426.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005066/0.309, allocations: 375 kB / 427 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002945/0.3093, allocations: 133.4 kB / 427.1 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001908/0.3095, allocations: 147.4 kB / 427.3 MB, free: 9.898 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000234/0.3097, allocations: 147.2 kB / 427.4 MB, free: 9.754 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.739e-05/0.3098, allocations: 32 kB / 427.5 MB, free: 9.723 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001399/0.3099, allocations: 79.95 kB / 427.5 MB, free: 9.645 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001285/0.3101, allocations: 83.69 kB / 427.6 MB, free: 9.562 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001587/0.3102, allocations: 159.1 kB / 427.8 MB, free: 9.406 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000584/0.3108, allocations: 422.5 kB / 428.2 MB, free: 8.996 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.3108, allocations: 3.938 kB / 428.2 MB, free: 8.992 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3108, allocations: 0 / 428.2 MB, free: 8.992 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.576e-06/0.3108, allocations: 0 / 428.2 MB, free: 8.992 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.001153/0.312, allocations: 0.5714 MB / 428.8 MB, free: 8.387 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.312, allocations: 8.031 kB / 428.8 MB, free: 8.379 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.173e-05/0.3121, allocations: 66.72 kB / 428.8 MB, free: 8.305 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.076e-05/0.3122, allocations: 40.66 kB / 428.9 MB, free: 8.266 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005034/0.3127, allocations: 270 kB / 429.1 MB, free: 7.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.212e-05/0.3127, allocations: 21.03 kB / 429.2 MB, free: 7.961 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.694e-05/0.3128, allocations: 36.12 kB / 429.2 MB, free: 7.926 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001467/0.3143, allocations: 0.7371 MB / 429.9 MB, free: 7.156 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.188e-05/0.3143, allocations: 3.938 kB / 429.9 MB, free: 7.152 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.162e-05/0.3143, allocations: 12 kB / 429.9 MB, free: 7.141 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.314e-05/0.3143, allocations: 8 kB / 430 MB, free: 7.133 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005702/0.3149, allocations: 219.8 kB / 430.2 MB, free: 6.918 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001114/0.316, allocations: 0.7189 MB / 430.9 MB, free: 6.137 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00112/0.3171, allocations: 459.7 kB / 431.3 MB, free: 5.652 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004931/0.3176, allocations: 247.7 kB / 431.6 MB, free: 5.398 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004668/0.3181, allocations: 63.94 kB / 431.6 MB, free: 5.336 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.748e-05/0.3181, allocations: 46.5 kB / 431.7 MB, free: 5.281 MB / 334.1 MB Notification: Performance of pre-optimization done (n=52): time 2.014e-06/0.3181, allocations: 0 / 431.7 MB, free: 5.281 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.001291/0.3194, allocations: 0.5205 MB / 432.2 MB, free: 4.754 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001882/0.3196, allocations: 219.6 kB / 432.4 MB, free: 4.496 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003243/0.3199, allocations: 254 kB / 432.7 MB, free: 4.242 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.812e-05/0.32, allocations: 33.7 kB / 432.7 MB, free: 4.203 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001514/0.3201, allocations: 152.9 kB / 432.9 MB, free: 4.051 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.319e-05/0.3202, allocations: 55.75 kB / 432.9 MB, free: 3.996 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001138/0.3203, allocations: 78.2 kB / 433 MB, free: 3.914 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002183/0.3205, allocations: 346.8 kB / 433.3 MB, free: 3.566 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001924/0.3207, allocations: 84.94 kB / 433.4 MB, free: 3.48 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005805/0.3213, allocations: 438 kB / 433.8 MB, free: 2.887 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008324/0.3221, allocations: 0.5281 MB / 434.4 MB, free: 2.195 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.578e-06/0.3221, allocations: 4 kB / 434.4 MB, free: 2.191 MB / 334.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001018/0.3232, allocations: 0.4938 MB / 434.9 MB, free: 1.691 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.17e-05/0.3232, allocations: 8 kB / 434.9 MB, free: 1.684 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.477e-05/0.3232, allocations: 12.09 kB / 434.9 MB, free: 1.672 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.07e-05/0.3232, allocations: 20 kB / 434.9 MB, free: 1.652 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004062/0.3237, allocations: 123.8 kB / 435 MB, free: 1.531 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.408e-05/0.3237, allocations: 19.94 kB / 435 MB, free: 1.512 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003389/0.324, allocations: 51.72 kB / 435.1 MB, free: 1.461 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.592e-05/0.3241, allocations: 32 kB / 435.1 MB, free: 1.43 MB / 334.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.0003416/0.3244, allocations: 189.5 kB / 435.3 MB, free: 1.234 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007172/0.3251, allocations: 350.3 kB / 435.6 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007509/0.3259, allocations: 356.5 kB / 436 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.228e-05/0.3259, allocations: 8.469 kB / 436 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.747e-06/0.3259, allocations: 3.984 kB / 436 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.3259, allocations: 0 / 436 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004755/0.3264, allocations: 320.2 kB / 436.3 MB, free: 164 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.07e-05/0.3264, allocations: 3.984 kB / 436.3 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003915/0.3268, allocations: 99.88 kB / 436.4 MB, free: 60 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.707e-06/0.3268, allocations: 7.984 kB / 436.4 MB, free: 52 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.903e-05/0.3268, allocations: 11.94 kB / 436.4 MB, free: 40 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.831e-06/0.3268, allocations: 4 kB / 436.4 MB, free: 36 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/0.3268, allocations: 3.938 kB / 436.4 MB, free: 32 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001466/0.3283, allocations: 0.771 MB / 437.2 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.404e-05/0.3284, allocations: 47.78 kB / 437.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.09e-05/0.3284, allocations: 16 kB / 437.3 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002488/0.3287, allocations: 23.97 kB / 437.3 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.288e-05/0.3288, allocations: 12 kB / 437.3 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.061e-05/0.3288, allocations: 12 kB / 437.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002394/0.329, allocations: 181.2 kB / 437.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.329, allocations: 0 / 437.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005599/0.3296, allocations: 79.94 kB / 437.6 MB, free: 14.87 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.001871/0.3315, allocations: 1.347 MB / 438.9 MB, free: 13.49 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008105/0.3323, allocations: 349.2 kB / 439.3 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.3323, allocations: 0 / 439.3 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001016/0.3324, allocations: 32.47 kB / 439.3 MB, free: 13.12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001053/0.3334, allocations: 283 kB / 439.6 MB, free: 12.84 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005304/0.3387, allocations: 3.839 MB / 443.4 MB, free: 8.574 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000486/0.3392, allocations: 0.812 MB / 444.2 MB, free: 7.734 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001184/0.3393, allocations: 35.28 kB / 444.3 MB, free: 7.695 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002037/0.3395, allocations: 111.4 kB / 444.4 MB, free: 7.586 MB / 350.1 MB Notification: Performance of SimCode: time 1.213e-06/0.3395, allocations: 0 / 444.4 MB, free: 7.586 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04225/0.3818, allocations: 8.555 MB / 452.9 MB, free: 15.21 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.85/12.23, allocations: 19.86 kB / 452.9 MB, free: 15.19 MB / 366.1 MB " [Timeout remaining time 648] (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/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_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: 14.739773371024057]