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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001736/0.001736, allocations: 105.5 kB / 17.06 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002309/0.002309, allocations: 195 kB / 18 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.367/2.367, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002116/0.002116, allocations: 48.06 kB / 350.8 MB, free: 3.793 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5089/0.511, allocations: 49.44 MB / 400.2 MB, free: 8.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.01038/0.5215, allocations: 2.68 MB / 402.9 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004485/0.5261, allocations: 0.9075 MB / 403.8 MB, free: 5.355 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008255/0.527, allocations: 11.94 kB / 403.8 MB, free: 5.344 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000521/0.5276, allocations: 59.39 kB / 403.9 MB, free: 5.285 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008439/0.5285, allocations: 59.45 kB / 403.9 MB, free: 5.227 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001906/0.5304, allocations: 243.5 kB / 404.2 MB, free: 4.988 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001302/0.5317, allocations: 378.9 kB / 404.5 MB, free: 4.617 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008253/0.5326, allocations: 188.8 kB / 404.7 MB, free: 4.43 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004796/0.5331, allocations: 139.4 kB / 404.9 MB, free: 4.293 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004888/0.5336, allocations: 151.1 kB / 405 MB, free: 4.145 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001517/0.5338, allocations: 32 kB / 405 MB, free: 4.113 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003141/0.5341, allocations: 71.94 kB / 405.1 MB, free: 4.043 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000217/0.5343, allocations: 75.77 kB / 405.2 MB, free: 3.969 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003772/0.5347, allocations: 167 kB / 405.3 MB, free: 3.805 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001016/0.5358, allocations: 416.1 kB / 405.8 MB, free: 3.398 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.5358, allocations: 0 / 405.8 MB, free: 3.398 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.5358, allocations: 0 / 405.8 MB, free: 3.398 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.299e-05/0.5358, allocations: 0 / 405.8 MB, free: 3.398 MB / 318.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.002286/0.5381, allocations: 0.6391 MB / 406.4 MB, free: 2.711 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001004/0.5383, allocations: 12.03 kB / 406.4 MB, free: 2.699 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001682/0.5385, allocations: 62.72 kB / 406.5 MB, free: 2.629 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002004/0.5387, allocations: 40.47 kB / 406.5 MB, free: 2.59 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001175/0.5399, allocations: 339.9 kB / 406.8 MB, free: 2.219 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.095e-05/0.5399, allocations: 16.94 kB / 406.9 MB, free: 2.203 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.385e-05/0.5401, allocations: 32.12 kB / 406.9 MB, free: 2.172 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002801/0.5429, allocations: 0.7444 MB / 407.6 MB, free: 1.391 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.098e-05/0.543, allocations: 4 kB / 407.6 MB, free: 1.387 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.814e-05/0.543, allocations: 8 kB / 407.6 MB, free: 1.379 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.43e-05/0.5431, allocations: 15.94 kB / 407.7 MB, free: 1.363 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001107/0.5442, allocations: 215.8 kB / 407.9 MB, free: 1.152 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001661/0.5459, allocations: 0.772 MB / 408.6 MB, free: 312 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002002/0.5479, allocations: 0.6229 MB / 409.3 MB, free: 15.6 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008492/0.5488, allocations: 271.5 kB / 409.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001196/0.55, allocations: 0.5894 MB / 410.1 MB, free: 14.61 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.808e-05/0.5501, allocations: 46.5 kB / 410.2 MB, free: 14.55 MB / 334.1 MB Notification: Performance of pre-optimization done (n=52): time 5.58e-06/0.5502, allocations: 0 / 410.2 MB, free: 14.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.002539/0.5527, allocations: 0.5175 MB / 410.7 MB, free: 14.03 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002977/0.553, allocations: 223.5 kB / 410.9 MB, free: 13.77 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006118/0.5537, allocations: 246.6 kB / 411.1 MB, free: 13.52 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.778e-05/0.5538, allocations: 37.69 kB / 411.2 MB, free: 13.48 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002587/0.5541, allocations: 152.8 kB / 411.3 MB, free: 13.32 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001191/0.5542, allocations: 47.67 kB / 411.4 MB, free: 13.27 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002422/0.5545, allocations: 82.25 kB / 411.5 MB, free: 13.18 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002646/0.5547, allocations: 350.8 kB / 411.8 MB, free: 12.83 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003545/0.5551, allocations: 85.06 kB / 411.9 MB, free: 12.75 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008422/0.556, allocations: 435 kB / 412.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001255/0.5573, allocations: 0.5242 MB / 412.8 MB, free: 11.47 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-05/0.5573, allocations: 4 kB / 412.8 MB, free: 11.46 MB / 334.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.00175/0.5591, allocations: 0.4973 MB / 413.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.097e-05/0.5591, allocations: 8 kB / 413.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.629e-05/0.5592, allocations: 12 kB / 413.3 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.113e-05/0.5592, allocations: 19.94 kB / 413.4 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006863/0.5599, allocations: 115.8 kB / 413.5 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.58e-05/0.56, allocations: 27.86 kB / 413.5 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006822/0.5607, allocations: 51.58 kB / 413.6 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.751e-05/0.5608, allocations: 28.28 kB / 413.6 MB, free: 10.7 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.0005981/0.5614, allocations: 189.5 kB / 413.8 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001512/0.563, allocations: 342.1 kB / 414.1 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001516/0.5645, allocations: 365.1 kB / 414.5 MB, free: 9.805 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-05/0.5646, allocations: 8 kB / 414.5 MB, free: 9.797 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.76e-05/0.5646, allocations: 0 / 414.5 MB, free: 9.797 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.754e-05/0.5646, allocations: 7.984 kB / 414.5 MB, free: 9.789 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001142/0.5658, allocations: 341 kB / 414.8 MB, free: 9.406 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.832e-05/0.5658, allocations: 4 kB / 414.8 MB, free: 9.402 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007892/0.5667, allocations: 95.88 kB / 414.9 MB, free: 9.309 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.41e-05/0.5667, allocations: 4.469 kB / 414.9 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.849e-05/0.5668, allocations: 19.92 kB / 414.9 MB, free: 9.285 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.241e-05/0.5668, allocations: 7.938 kB / 414.9 MB, free: 9.277 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.965e-06/0.5668, allocations: 4 kB / 414.9 MB, free: 9.273 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002793/0.5696, allocations: 0.7785 MB / 415.7 MB, free: 8.469 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002694/0.5699, allocations: 116.6 kB / 415.8 MB, free: 8.336 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001806/0.5701, allocations: 12 kB / 415.8 MB, free: 8.324 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005455/0.5707, allocations: 27.97 kB / 415.9 MB, free: 8.297 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.992e-05/0.5708, allocations: 3.984 kB / 415.9 MB, free: 8.293 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.3e-05/0.5709, allocations: 16.06 kB / 415.9 MB, free: 8.277 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004459/0.5714, allocations: 186 kB / 416.1 MB, free: 8.098 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5714, allocations: 0 / 416.1 MB, free: 8.098 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001254/0.5727, allocations: 71.91 kB / 416.1 MB, free: 8.027 MB / 334.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.003593/0.5763, allocations: 1.348 MB / 417.5 MB, free: 6.648 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0017/0.578, allocations: 361.6 kB / 417.8 MB, free: 6.297 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/0.5781, allocations: 0 / 417.8 MB, free: 6.297 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002762/0.5784, allocations: 31.92 kB / 417.9 MB, free: 6.266 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002489/0.5809, allocations: 300.5 kB / 418.2 MB, free: 5.969 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01059/0.5915, allocations: 3.811 MB / 422 MB, free: 1.738 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000905/0.5925, allocations: 0.8119 MB / 422.8 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003134/0.5928, allocations: 39.27 kB / 422.8 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003902/0.5933, allocations: 111.4 kB / 422.9 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of SimCode: time 2.776e-06/0.5933, allocations: 0 / 422.9 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05752/0.6508, allocations: 8.23 MB / 431.2 MB, free: 8.691 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.86/13.51, allocations: 14.75 kB / 431.2 MB, free: 8.684 MB / 350.1 MB (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 --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) 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) Reference file matches