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.001772/0.001772, allocations: 111.1 kB / 20.44 MB, free: 1.352 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.002156/0.002156, allocations: 216.4 kB / 23.73 MB, free: 4.531 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.448/1.448, allocations: 230.5 MB / 257.4 MB, free: 7.754 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.00219/0.00219, allocations: 59.91 kB / 377.7 MB, free: 2.852 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2919/0.2941, allocations: 53.41 MB / 431.1 MB, free: 6.469 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.00549/0.2996, allocations: 2.553 MB / 433.7 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002555/0.3021, allocations: 0.896 MB / 434.6 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003728/0.3025, allocations: 15.88 kB / 434.6 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003275/0.3028, allocations: 59.39 kB / 434.6 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003417/0.3032, allocations: 71.45 kB / 434.7 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001039/0.3042, allocations: 234.5 kB / 434.9 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005754/0.3048, allocations: 394.8 kB / 435.3 MB, free: 2.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003565/0.3051, allocations: 129.4 kB / 435.5 MB, free: 2.121 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002415/0.3054, allocations: 139.4 kB / 435.6 MB, free: 1.984 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002618/0.3056, allocations: 135.2 kB / 435.7 MB, free: 1.852 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.634e-05/0.3057, allocations: 32 kB / 435.8 MB, free: 1.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001892/0.3059, allocations: 71.97 kB / 435.8 MB, free: 1.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001466/0.306, allocations: 87.67 kB / 435.9 MB, free: 1.664 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001859/0.3062, allocations: 123.3 kB / 436 MB, free: 1.543 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007046/0.3069, allocations: 431.8 kB / 436.5 MB, free: 1.121 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.3069, allocations: 0 / 436.5 MB, free: 1.121 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3069, allocations: 0 / 436.5 MB, free: 1.121 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.265e-05/0.307, allocations: 0 / 436.5 MB, free: 1.121 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.001356/0.3083, allocations: 0.5753 MB / 437 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/0.3084, allocations: 8.031 kB / 437 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.751e-05/0.3085, allocations: 66.72 kB / 437.1 MB, free: 440 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001015/0.3086, allocations: 36.7 kB / 437.1 MB, free: 404 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006288/0.3092, allocations: 277.9 kB / 437.4 MB, free: 100 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.842e-05/0.3092, allocations: 17.03 kB / 437.4 MB, free: 84 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.074e-05/0.3093, allocations: 36.12 kB / 437.5 MB, free: 48 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002008/0.3113, allocations: 0.7911 MB / 438.3 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.424e-05/0.3113, allocations: 3.984 kB / 438.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.048e-05/0.3114, allocations: 12 kB / 438.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.267e-05/0.3114, allocations: 8 kB / 438.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008582/0.3122, allocations: 215.8 kB / 438.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001292/0.3135, allocations: 0.6564 MB / 439.1 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001527/0.315, allocations: 456.4 kB / 439.6 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000707/0.3158, allocations: 248.5 kB / 439.8 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005644/0.3163, allocations: 67.7 kB / 439.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.103e-05/0.3164, allocations: 46.56 kB / 439.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 3.196e-06/0.3164, allocations: 0 / 439.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.001834/0.3182, allocations: 0.5206 MB / 440.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002003/0.3184, allocations: 212.9 kB / 440.7 MB, free: 12.63 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004019/0.3188, allocations: 249.9 kB / 440.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.334e-05/0.3189, allocations: 37.81 kB / 441 MB, free: 12.33 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001539/0.319, allocations: 152.8 kB / 441.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.245e-05/0.3191, allocations: 47.72 kB / 441.1 MB, free: 12.13 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001626/0.3193, allocations: 82.19 kB / 441.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002129/0.3195, allocations: 350.8 kB / 441.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002541/0.3197, allocations: 84.88 kB / 441.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006917/0.3204, allocations: 497.5 kB / 442.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009478/0.3214, allocations: 0.5284 MB / 442.7 MB, free: 10.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.836e-06/0.3214, allocations: 4 kB / 442.7 MB, free: 10.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001184/0.3225, allocations: 0.4937 MB / 443.2 MB, free: 9.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.812e-05/0.3226, allocations: 12 kB / 443.2 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.798e-05/0.3226, allocations: 12.12 kB / 443.2 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.852e-05/0.3226, allocations: 16 kB / 443.2 MB, free: 9.711 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004846/0.3231, allocations: 119.8 kB / 443.3 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.223e-05/0.3232, allocations: 23.92 kB / 443.3 MB, free: 9.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004108/0.3236, allocations: 47.77 kB / 443.4 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.905e-05/0.3236, allocations: 32 kB / 443.4 MB, free: 9.492 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.0003001/0.3239, allocations: 196.5 kB / 443.6 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009799/0.3249, allocations: 349 kB / 444 MB, free: 8.945 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009952/0.3259, allocations: 352.8 kB / 444.3 MB, free: 8.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.043e-05/0.3259, allocations: 4 kB / 444.3 MB, free: 8.586 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.07e-05/0.3259, allocations: 4 kB / 444.3 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.748e-06/0.3259, allocations: 3.984 kB / 444.3 MB, free: 8.578 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005582/0.3265, allocations: 268.2 kB / 444.6 MB, free: 8.273 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.036e-05/0.3265, allocations: 8 kB / 444.6 MB, free: 8.266 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005524/0.327, allocations: 99.88 kB / 444.7 MB, free: 8.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.327, allocations: 0 / 444.7 MB, free: 8.168 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.706e-05/0.3271, allocations: 11.98 kB / 444.7 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.613e-06/0.3271, allocations: 4 kB / 444.7 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.3271, allocations: 0 / 444.7 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001867/0.329, allocations: 0.7825 MB / 445.5 MB, free: 7.344 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.522e-05/0.3291, allocations: 35.73 kB / 445.5 MB, free: 7.309 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.538e-05/0.3291, allocations: 19.98 kB / 445.5 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003786/0.3295, allocations: 23.98 kB / 445.6 MB, free: 7.266 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.614e-05/0.3296, allocations: 7.984 kB / 445.6 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.19e-05/0.3296, allocations: 12 kB / 445.6 MB, free: 7.246 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002617/0.3299, allocations: 181.3 kB / 445.8 MB, free: 7.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3299, allocations: 4 kB / 445.8 MB, free: 7.066 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009742/0.3308, allocations: 83.89 kB / 445.8 MB, free: 6.984 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.00254/0.3334, allocations: 1.347 MB / 447.2 MB, free: 5.602 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001096/0.3345, allocations: 348.8 kB / 447.5 MB, free: 5.266 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.3345, allocations: 0 / 447.5 MB, free: 5.266 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001385/0.3346, allocations: 31.91 kB / 447.6 MB, free: 5.234 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001582/0.3362, allocations: 299.5 kB / 447.9 MB, free: 4.941 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007213/0.3434, allocations: 3.829 MB / 451.7 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003503/0.3438, allocations: 202.5 kB / 451.9 MB, free: 480 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002063/0.344, allocations: 39.27 kB / 451.9 MB, free: 440 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002607/0.3442, allocations: 107.4 kB / 452 MB, free: 332 kB / 350.1 MB Notification: Performance of SimCode: time 1.253e-06/0.3442, allocations: 0 / 452 MB, free: 332 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04722/0.3914, allocations: 9.04 MB / 461.1 MB, free: 7.453 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.36, allocations: 8.062 kB / 461.1 MB, free: 7.445 MB / 366.1 MB " [Timeout remaining time 649] (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009802 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.csv","/var/lib/jenkins1/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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable PI.x in file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv. Warning: Get data of variable PI.x from file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv failed! Error: Could not read variable PI.y in file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv. Warning: Get data of variable PI.y from file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:time,load.phi,load.w [Calling sys.exit(0), Time elapsed: 14.087097702082247]