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.001899/0.001899, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 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.002307/0.002307, allocations: 208.2 kB / 23.73 MB, free: 4.387 MB / 14.72 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 1.52/1.52, allocations: 230.6 MB / 257.5 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] 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 0.00183/0.00183, allocations: 47.92 kB / 377.7 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2648/0.2666, allocations: 53.37 MB / 431.1 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.004183/0.2708, allocations: 2.561 MB / 433.6 MB, free: 4.062 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001621/0.2724, allocations: 0.9037 MB / 434.5 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001736/0.2726, allocations: 11.94 kB / 434.5 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000207/0.2728, allocations: 67.31 kB / 434.6 MB, free: 3.078 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002313/0.273, allocations: 67.45 kB / 434.7 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006666/0.2737, allocations: 227.2 kB / 434.9 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004265/0.2741, allocations: 390.9 kB / 435.3 MB, free: 2.41 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002875/0.2744, allocations: 129.4 kB / 435.4 MB, free: 2.281 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001668/0.2746, allocations: 135.4 kB / 435.5 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001856/0.2748, allocations: 135.2 kB / 435.7 MB, free: 2.016 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.599e-05/0.2748, allocations: 32 kB / 435.7 MB, free: 1.984 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000134/0.275, allocations: 71.95 kB / 435.8 MB, free: 1.914 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001159/0.2751, allocations: 83.69 kB / 435.9 MB, free: 1.832 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001312/0.2752, allocations: 123.3 kB / 436 MB, free: 1.711 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005019/0.2757, allocations: 431.8 kB / 436.4 MB, free: 1.289 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.2757, allocations: 0 / 436.4 MB, free: 1.289 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2757, allocations: 4 kB / 436.4 MB, free: 1.285 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.046e-05/0.2757, allocations: 0 / 436.4 MB, free: 1.285 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.001046/0.2768, allocations: 0.5753 MB / 437 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.2768, allocations: 8.031 kB / 437 MB, free: 0.668 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.958e-05/0.2769, allocations: 62.73 kB / 437 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.477e-05/0.277, allocations: 40.69 kB / 437.1 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004676/0.2774, allocations: 277.9 kB / 437.4 MB, free: 268 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.159e-05/0.2775, allocations: 21.02 kB / 437.4 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.918e-05/0.2775, allocations: 32.12 kB / 437.4 MB, free: 216 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001454/0.279, allocations: 0.795 MB / 438.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.567e-05/0.279, allocations: 0 / 438.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.039e-05/0.279, allocations: 12 kB / 438.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.436e-05/0.279, allocations: 8 kB / 438.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005746/0.2796, allocations: 219.8 kB / 438.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008485/0.2805, allocations: 0.6526 MB / 439.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001028/0.2815, allocations: 457.2 kB / 439.5 MB, free: 13.94 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004869/0.282, allocations: 259.7 kB / 439.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004123/0.2824, allocations: 63.72 kB / 439.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.648e-05/0.2824, allocations: 42.56 kB / 439.9 MB, free: 13.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 1.834e-06/0.2824, allocations: 0 / 439.9 MB, free: 13.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.001225/0.2837, allocations: 0.5247 MB / 440.4 MB, free: 13.03 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001493/0.2838, allocations: 207.9 kB / 440.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002715/0.2841, allocations: 249.9 kB / 440.9 MB, free: 12.53 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.574e-05/0.2841, allocations: 37.7 kB / 440.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001115/0.2842, allocations: 153 kB / 441 MB, free: 12.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.472e-05/0.2843, allocations: 51.7 kB / 441.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001044/0.2844, allocations: 82.19 kB / 441.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.2845, allocations: 350.8 kB / 441.5 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000191/0.2847, allocations: 84.88 kB / 441.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005033/0.2852, allocations: 489.5 kB / 442.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006938/0.2859, allocations: 0.5281 MB / 442.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.273e-06/0.2859, allocations: 8 kB / 442.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008228/0.2868, allocations: 0.4894 MB / 443.1 MB, free: 9.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.2868, allocations: 12 kB / 443.1 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.597e-05/0.2868, allocations: 12 kB / 443.1 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.447e-05/0.2868, allocations: 12 kB / 443.1 MB, free: 9.875 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003301/0.2872, allocations: 127.8 kB / 443.3 MB, free: 9.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.157e-05/0.2872, allocations: 19.94 kB / 443.3 MB, free: 9.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002583/0.2874, allocations: 56.2 kB / 443.3 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.57e-05/0.2875, allocations: 32 kB / 443.4 MB, free: 9.645 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.0002178/0.2877, allocations: 193.5 kB / 443.6 MB, free: 9.445 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006567/0.2883, allocations: 350 kB / 443.9 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007005/0.289, allocations: 352.8 kB / 444.2 MB, free: 8.742 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.104e-06/0.2891, allocations: 4 kB / 444.3 MB, free: 8.738 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.2891, allocations: 4 kB / 444.3 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.2891, allocations: 3.984 kB / 444.3 MB, free: 8.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003621/0.2894, allocations: 260.3 kB / 444.5 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.085e-06/0.2894, allocations: 4 kB / 444.5 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003969/0.2898, allocations: 103.9 kB / 444.6 MB, free: 8.328 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.2898, allocations: 3.938 kB / 444.6 MB, free: 8.324 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.594e-05/0.2899, allocations: 12 kB / 444.6 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-05/0.2899, allocations: 8 kB / 444.6 MB, free: 8.305 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.2899, allocations: 0 / 444.6 MB, free: 8.305 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00135/0.2912, allocations: 0.7709 MB / 445.4 MB, free: 7.512 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.264e-05/0.2913, allocations: 35.92 kB / 445.4 MB, free: 7.477 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.747e-05/0.2914, allocations: 24.05 kB / 445.5 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002432/0.2916, allocations: 27.92 kB / 445.5 MB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.591e-05/0.2916, allocations: 15.91 kB / 445.5 MB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.351e-05/0.2917, allocations: 12 kB / 445.5 MB, free: 7.398 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001955/0.2919, allocations: 185.2 kB / 445.7 MB, free: 7.219 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2919, allocations: 0 / 445.7 MB, free: 7.219 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005046/0.2924, allocations: 79.89 kB / 445.8 MB, free: 7.141 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.001718/0.2941, allocations: 1.343 MB / 447.1 MB, free: 5.762 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007354/0.2948, allocations: 349.6 kB / 447.5 MB, free: 5.426 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.2948, allocations: 0 / 447.5 MB, free: 5.426 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001063/0.2949, allocations: 32.03 kB / 447.5 MB, free: 5.395 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001029/0.296, allocations: 306.9 kB / 447.8 MB, free: 5.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004855/0.3008, allocations: 3.83 MB / 451.6 MB, free: 0.832 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002012/0.301, allocations: 206.5 kB / 451.8 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001113/0.3011, allocations: 35.28 kB / 451.9 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001653/0.3013, allocations: 115.4 kB / 452 MB, free: 472 kB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3013, allocations: 0 / 452 MB, free: 472 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03835/0.3396, allocations: 9.01 MB / 461 MB, free: 7.648 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/11.79, allocations: 14.53 kB / 461 MB, free: 7.637 MB / 366.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_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.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_4.1.0_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_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv. Warning: Get data of variable PI.x from file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv. Warning: Get data of variable PI.y from file Modelica_4.1.0_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.470174309331924]