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.001735/0.001735, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002181/0.002181, allocations: 203.6 kB / 23.73 MB, free: 4.379 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.486/1.486, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.001483/0.001483, allocations: 55.92 kB / 377.7 MB, free: 3.008 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2582/0.2597, allocations: 53.37 MB / 431.1 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.005723/0.2654, allocations: 2.549 MB / 433.6 MB, free: 4.121 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001918/0.2673, allocations: 0.9076 MB / 434.5 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002282/0.2675, allocations: 15.88 kB / 434.5 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002261/0.2677, allocations: 59.39 kB / 434.6 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002717/0.268, allocations: 75.44 kB / 434.7 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007922/0.2688, allocations: 231 kB / 434.9 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000453/0.2693, allocations: 378.9 kB / 435.3 MB, free: 2.469 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003128/0.2696, allocations: 133.4 kB / 435.4 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001909/0.2698, allocations: 151.4 kB / 435.5 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000198/0.27, allocations: 151.2 kB / 435.7 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.975e-05/0.27, allocations: 32 kB / 435.7 MB, free: 2.008 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001417/0.2702, allocations: 71.91 kB / 435.8 MB, free: 1.938 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001162/0.2703, allocations: 79.75 kB / 435.9 MB, free: 1.859 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001389/0.2704, allocations: 131.2 kB / 436 MB, free: 1.73 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005486/0.271, allocations: 419.9 kB / 436.4 MB, free: 1.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.271, allocations: 4 kB / 436.4 MB, free: 1.316 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.271, allocations: 0 / 436.4 MB, free: 1.316 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.271, allocations: 0 / 436.4 MB, free: 1.316 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.001117/0.2721, allocations: 0.5792 MB / 437 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.2721, allocations: 8.031 kB / 437 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.839e-05/0.2722, allocations: 62.72 kB / 437.1 MB, free: 0.625 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.672e-05/0.2723, allocations: 40.7 kB / 437.1 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005321/0.2728, allocations: 273.9 kB / 437.4 MB, free: 300 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.378e-05/0.2729, allocations: 21.03 kB / 437.4 MB, free: 280 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.047e-05/0.2729, allocations: 32.12 kB / 437.4 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00146/0.2744, allocations: 0.7911 MB / 438.2 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.029e-05/0.2744, allocations: 4 kB / 438.2 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.101e-05/0.2744, allocations: 16 kB / 438.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/0.2744, allocations: 7.984 kB / 438.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006407/0.2751, allocations: 215.8 kB / 438.5 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008553/0.2759, allocations: 0.6564 MB / 439.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001045/0.277, allocations: 461.3 kB / 439.6 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000527/0.2775, allocations: 251.7 kB / 439.8 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004195/0.2779, allocations: 71.7 kB / 439.9 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.981e-05/0.278, allocations: 38.56 kB / 439.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 2.264e-06/0.278, allocations: 0 / 439.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.001269/0.2792, allocations: 0.5247 MB / 440.4 MB, free: 13.06 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001778/0.2794, allocations: 211.9 kB / 440.6 MB, free: 12.81 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003059/0.2797, allocations: 253.8 kB / 440.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.071e-05/0.2798, allocations: 37.7 kB / 440.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001249/0.2799, allocations: 144.9 kB / 441.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.624e-05/0.2799, allocations: 55.72 kB / 441.1 MB, free: 12.31 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001077/0.28, allocations: 78.19 kB / 441.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001694/0.2802, allocations: 346.9 kB / 441.5 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001876/0.2804, allocations: 92.94 kB / 441.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005404/0.2809, allocations: 485.5 kB / 442.1 MB, free: 11.13 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008877/0.2818, allocations: 0.5243 MB / 442.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.367e-06/0.2818, allocations: 7.938 kB / 442.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0009005/0.2827, allocations: 0.4977 MB / 443.1 MB, free: 9.934 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.682e-05/0.2828, allocations: 8 kB / 443.1 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.772e-05/0.2828, allocations: 12 kB / 443.2 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.808e-05/0.2828, allocations: 16 kB / 443.2 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003306/0.2831, allocations: 119.8 kB / 443.3 MB, free: 9.781 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.516e-05/0.2832, allocations: 23.92 kB / 443.3 MB, free: 9.758 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002647/0.2834, allocations: 51.7 kB / 443.4 MB, free: 9.707 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.611e-05/0.2835, allocations: 32 kB / 443.4 MB, free: 9.676 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.0002348/0.2837, allocations: 193.5 kB / 443.6 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006605/0.2844, allocations: 350 kB / 443.9 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007696/0.2851, allocations: 352.8 kB / 444.3 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.2851, allocations: 4 kB / 444.3 MB, free: 8.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.2852, allocations: 0 / 444.3 MB, free: 8.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.227e-06/0.2852, allocations: 11.98 kB / 444.3 MB, free: 8.758 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003911/0.2856, allocations: 264.3 kB / 444.5 MB, free: 8.457 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-06/0.2856, allocations: 0 / 444.5 MB, free: 8.457 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003835/0.2859, allocations: 103.8 kB / 444.6 MB, free: 8.355 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.568e-06/0.2859, allocations: 4 kB / 444.6 MB, free: 8.352 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.941e-05/0.286, allocations: 15.98 kB / 444.7 MB, free: 8.336 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/0.286, allocations: 4 kB / 444.7 MB, free: 8.332 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.286, allocations: 0 / 444.7 MB, free: 8.332 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001509/0.2875, allocations: 0.7786 MB / 445.4 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.324e-05/0.2876, allocations: 39.73 kB / 445.5 MB, free: 7.492 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.555e-05/0.2876, allocations: 16 kB / 445.5 MB, free: 7.477 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002401/0.2879, allocations: 27.97 kB / 445.5 MB, free: 7.449 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.954e-05/0.2879, allocations: 4.047 kB / 445.5 MB, free: 7.445 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.18e-05/0.2879, allocations: 20 kB / 445.5 MB, free: 7.426 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001865/0.2881, allocations: 185.2 kB / 445.7 MB, free: 7.246 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2881, allocations: 0 / 445.7 MB, free: 7.246 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005236/0.2886, allocations: 75.89 kB / 445.8 MB, free: 7.172 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.001772/0.2904, allocations: 1.355 MB / 447.2 MB, free: 5.781 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007449/0.2911, allocations: 348.1 kB / 447.5 MB, free: 5.445 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.2912, allocations: 4 kB / 447.5 MB, free: 5.441 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001033/0.2913, allocations: 33.47 kB / 447.5 MB, free: 5.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001045/0.2923, allocations: 295.5 kB / 447.8 MB, free: 5.121 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005235/0.2975, allocations: 3.826 MB / 451.7 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002035/0.2977, allocations: 202.5 kB / 451.8 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001225/0.2979, allocations: 39.27 kB / 451.9 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001689/0.298, allocations: 107.4 kB / 452 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of SimCode: time 8.62e-07/0.298, allocations: 4 kB / 452 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04178/0.3398, allocations: 9.17 MB / 461.2 MB, free: 7.531 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/11.49, allocations: 7.875 kB / 461.2 MB, free: 7.523 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.145442092005396]