Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007681/0.0007681, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007704/0.0007704, allocations: 170.3 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8554/0.8554, allocations: 177.1 MB / 204.3 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,fileNamePrefix="Modelica_4_1_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_1_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.603e-06/1.603e-06, allocations: 0 / 324.5 MB, free: 15.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.601e-05/1.761e-05, allocations: 2.281 kB / 324.5 MB, free: 15.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.002805/0.002823, allocations: 2.561 MB / 327.1 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001283/0.004106, allocations: 0.9112 MB / 328 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001759/0.004282, allocations: 11.88 kB / 328 MB, free: 12.33 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001746/0.004456, allocations: 71.31 kB / 328.1 MB, free: 12.26 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002212/0.004678, allocations: 59.45 kB / 328.2 MB, free: 12.2 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005128/0.00519, allocations: 251.2 kB / 328.4 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003126/0.005503, allocations: 394.7 kB / 328.8 MB, free: 11.57 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002136/0.005717, allocations: 125.4 kB / 328.9 MB, free: 11.45 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001804/0.005897, allocations: 199.5 kB / 329.1 MB, free: 11.25 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001223/0.006019, allocations: 103.6 kB / 329.2 MB, free: 11.15 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.804e-05/0.006057, allocations: 32 kB / 329.2 MB, free: 11.12 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.416e-05/0.006151, allocations: 71.95 kB / 329.3 MB, free: 11.05 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.393e-05/0.006235, allocations: 79.67 kB / 329.4 MB, free: 10.97 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.797e-05/0.006313, allocations: 107.7 kB / 329.5 MB, free: 10.87 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003683/0.006682, allocations: 430.5 kB / 329.9 MB, free: 10.45 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.274e-06/0.006684, allocations: 7.938 kB / 329.9 MB, free: 10.44 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.006685, allocations: 0 / 329.9 MB, free: 10.44 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.00669, allocations: 0 / 329.9 MB, free: 10.44 MB / 298.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.0006973/0.007387, allocations: 0.5713 MB / 330.5 MB, free: 9.832 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.599e-05/0.007423, allocations: 12.03 kB / 330.5 MB, free: 9.82 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.864e-05/0.007472, allocations: 66.67 kB / 330.6 MB, free: 9.746 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.846e-05/0.00753, allocations: 48.69 kB / 330.6 MB, free: 9.699 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003128/0.007843, allocations: 261.2 kB / 330.9 MB, free: 9.422 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.117e-05/0.007864, allocations: 25.03 kB / 330.9 MB, free: 9.398 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.115e-05/0.007895, allocations: 24.38 kB / 330.9 MB, free: 9.375 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008308/0.008726, allocations: 0.8011 MB / 331.7 MB, free: 8.523 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/0.00874, allocations: 7.938 kB / 331.7 MB, free: 8.516 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.971e-05/0.00876, allocations: 8 kB / 331.7 MB, free: 8.508 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.844e-06/0.008768, allocations: 11.94 kB / 331.7 MB, free: 8.496 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003043/0.009072, allocations: 215.8 kB / 332 MB, free: 8.285 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005431/0.009615, allocations: 0.6567 MB / 332.6 MB, free: 7.566 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006035/0.01022, allocations: 457.3 kB / 333.1 MB, free: 7.082 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002626/0.01048, allocations: 246.9 kB / 333.3 MB, free: 6.828 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002209/0.0107, allocations: 63.94 kB / 333.4 MB, free: 6.766 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.314e-05/0.01073, allocations: 50.44 kB / 333.4 MB, free: 6.707 MB / 298.7 MB Notification: Performance of pre-optimization done (n=52): time 1.593e-06/0.01073, allocations: 4 kB / 333.4 MB, free: 6.703 MB / 298.7 MB Notification: Performance of matching and sorting (n=52): time 0.0006853/0.01141, allocations: 0.5205 MB / 333.9 MB, free: 6.176 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.588e-05/0.01151, allocations: 203.9 kB / 334.1 MB, free: 5.934 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001652/0.01167, allocations: 262 kB / 334.4 MB, free: 5.664 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.085e-05/0.01169, allocations: 29.7 kB / 334.4 MB, free: 5.629 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.271e-05/0.01177, allocations: 152.9 kB / 334.6 MB, free: 5.477 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.374e-05/0.01179, allocations: 35.73 kB / 334.6 MB, free: 5.441 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.026e-05/0.01183, allocations: 37.7 kB / 334.6 MB, free: 5.398 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.61e-05/0.01191, allocations: 330.8 kB / 335 MB, free: 5.066 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.706e-05/0.01197, allocations: 43.97 kB / 335 MB, free: 5.023 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001204/0.01209, allocations: 197.4 kB / 335.2 MB, free: 4.781 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000149/0.01224, allocations: 157.3 kB / 335.3 MB, free: 4.594 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.01225, allocations: 0 / 335.3 MB, free: 4.594 MB / 298.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002143/0.01246, allocations: 205.3 kB / 335.5 MB, free: 4.387 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/0.01247, allocations: 15.88 kB / 335.6 MB, free: 4.371 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.01248, allocations: 4 kB / 335.6 MB, free: 4.367 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.118e-05/0.01249, allocations: 0 / 335.6 MB, free: 4.367 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.286e-05/0.01257, allocations: 52.22 kB / 335.6 MB, free: 4.316 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.01258, allocations: 4 kB / 335.6 MB, free: 4.312 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.918e-05/0.01265, allocations: 19.88 kB / 335.6 MB, free: 4.293 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.796e-06/0.01266, allocations: 12 kB / 335.7 MB, free: 4.281 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.0001101/0.01277, allocations: 156.2 kB / 335.8 MB, free: 4.121 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003548/0.01312, allocations: 346.5 kB / 336.1 MB, free: 3.777 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004014/0.01352, allocations: 372.7 kB / 336.5 MB, free: 3.406 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.01353, allocations: 11.94 kB / 336.5 MB, free: 3.395 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.01353, allocations: 0 / 336.5 MB, free: 3.395 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.01354, allocations: 7.984 kB / 336.5 MB, free: 3.387 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002299/0.01377, allocations: 260.4 kB / 336.8 MB, free: 3.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.01377, allocations: 4 kB / 336.8 MB, free: 3.086 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001997/0.01397, allocations: 99.88 kB / 336.9 MB, free: 2.988 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.01398, allocations: 7.938 kB / 336.9 MB, free: 2.98 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.703e-05/0.014, allocations: 11.98 kB / 336.9 MB, free: 2.969 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.014, allocations: 4 kB / 336.9 MB, free: 2.965 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.014, allocations: 0 / 336.9 MB, free: 2.965 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007543/0.01475, allocations: 0.7805 MB / 337.7 MB, free: 2.168 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.677e-05/0.01479, allocations: 39.66 kB / 337.7 MB, free: 2.129 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.348e-05/0.01482, allocations: 19.92 kB / 337.7 MB, free: 2.109 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001221/0.01495, allocations: 27.98 kB / 337.8 MB, free: 2.082 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.108e-05/0.01498, allocations: 3.984 kB / 337.8 MB, free: 2.078 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.941e-05/0.015, allocations: 16 kB / 337.8 MB, free: 2.062 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001117/0.01511, allocations: 185.2 kB / 338 MB, free: 1.879 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01511, allocations: 0 / 338 MB, free: 1.879 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002526/0.01536, allocations: 59.95 kB / 338 MB, free: 1.82 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.0009379/0.0163, allocations: 1.341 MB / 339.4 MB, free: 452 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003177/0.01662, allocations: 227.3 kB / 339.6 MB, free: 228 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.01662, allocations: 0 / 339.6 MB, free: 228 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.775e-05/0.01667, allocations: 27.92 kB / 339.6 MB, free: 200 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006052/0.01727, allocations: 307.8 kB / 339.9 MB, free: 15.89 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002213/0.01948, allocations: 2.791 MB / 342.7 MB, free: 12.93 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001222/0.01961, allocations: 205.8 kB / 342.9 MB, free: 12.71 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.233e-05/0.01966, allocations: 18.98 kB / 342.9 MB, free: 12.69 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.965e-05/0.01976, allocations: 112.5 kB / 343 MB, free: 12.58 MB / 314.7 MB Notification: Performance of SimCode: time 6.72e-07/0.01976, allocations: 0 / 343 MB, free: 12.58 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01921/0.03896, allocations: 8.684 MB / 351.7 MB, free: 4.082 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.815/6.854, allocations: 5.625 kB / 351.7 MB, free: 4.078 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects_fmu --startTime=0 --stopTime=5 --stepSize=0.0009802 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.485052322037518]