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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001277/0.001277, allocations: 107.5 kB / 20.44 MB, free: 1.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001334/0.001334, allocations: 186 kB / 23.7 MB, free: 4.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.452/1.452, allocations: 225.7 MB / 252.5 MB, free: 12.84 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001608/0.001608, allocations: 51.86 kB / 370.4 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.2564, allocations: 52.19 MB / 422.6 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.004221/0.2606, allocations: 2.544 MB / 425.1 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001783/0.2624, allocations: 0.8688 MB / 426 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001871/0.2626, allocations: 19.88 kB / 426 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002139/0.2628, allocations: 55.39 kB / 426 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000236/0.263, allocations: 63.45 kB / 426.1 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006684/0.2637, allocations: 234.7 kB / 426.3 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004355/0.2641, allocations: 382.9 kB / 426.7 MB, free: 10.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002819/0.2644, allocations: 129.4 kB / 426.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001794/0.2646, allocations: 143.4 kB / 427 MB, free: 9.977 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001835/0.2648, allocations: 135.2 kB / 427.1 MB, free: 9.844 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.552e-05/0.2648, allocations: 32 kB / 427.1 MB, free: 9.812 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001395/0.2649, allocations: 71.97 kB / 427.2 MB, free: 9.742 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001106/0.2651, allocations: 83.73 kB / 427.3 MB, free: 9.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001384/0.2652, allocations: 131.2 kB / 427.4 MB, free: 9.531 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005019/0.2657, allocations: 423.9 kB / 427.8 MB, free: 9.117 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.2657, allocations: 0 / 427.8 MB, free: 9.117 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2657, allocations: 0 / 427.8 MB, free: 9.117 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.157e-06/0.2657, allocations: 3.938 kB / 427.8 MB, free: 9.113 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.001031/0.2667, allocations: 0.5714 MB / 428.4 MB, free: 8.508 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.2668, allocations: 8.031 kB / 428.4 MB, free: 8.5 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.328e-05/0.2669, allocations: 66.72 kB / 428.5 MB, free: 8.426 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.738e-05/0.2669, allocations: 44.59 kB / 428.5 MB, free: 8.383 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004691/0.2674, allocations: 266.1 kB / 428.8 MB, free: 8.102 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.974e-05/0.2674, allocations: 21.03 kB / 428.8 MB, free: 8.082 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.442e-05/0.2675, allocations: 36.12 kB / 428.8 MB, free: 8.047 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001478/0.269, allocations: 0.7951 MB / 429.6 MB, free: 7.207 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.7e-05/0.269, allocations: 0 / 429.6 MB, free: 7.207 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.066e-05/0.269, allocations: 15.94 kB / 429.7 MB, free: 7.191 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.299e-05/0.269, allocations: 4 kB / 429.7 MB, free: 7.188 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005666/0.2696, allocations: 219.8 kB / 429.9 MB, free: 6.973 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008595/0.2705, allocations: 0.6605 MB / 430.5 MB, free: 6.25 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001043/0.2715, allocations: 457.1 kB / 431 MB, free: 5.766 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004687/0.272, allocations: 247.7 kB / 431.2 MB, free: 5.512 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004357/0.2724, allocations: 63.92 kB / 431.3 MB, free: 5.449 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.435e-05/0.2724, allocations: 42.5 kB / 431.3 MB, free: 5.398 MB / 334.1 MB Notification: Performance of pre-optimization done (n=52): time 2.064e-06/0.2724, allocations: 0 / 431.3 MB, free: 5.398 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.001282/0.2737, allocations: 0.517 MB / 431.8 MB, free: 4.875 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001683/0.2739, allocations: 223.6 kB / 432.1 MB, free: 4.613 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002858/0.2742, allocations: 245.9 kB / 432.3 MB, free: 4.367 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.896e-05/0.2742, allocations: 37.7 kB / 432.3 MB, free: 4.324 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.2743, allocations: 152.9 kB / 432.5 MB, free: 4.172 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.445e-05/0.2744, allocations: 51.72 kB / 432.5 MB, free: 4.121 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001132/0.2745, allocations: 86.31 kB / 432.6 MB, free: 4.031 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001688/0.2747, allocations: 346.7 kB / 433 MB, free: 3.684 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001918/0.2749, allocations: 89.05 kB / 433 MB, free: 3.594 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005213/0.2754, allocations: 485.5 kB / 433.5 MB, free: 2.941 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006965/0.2761, allocations: 0.532 MB / 434.1 MB, free: 2.246 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.189e-06/0.2761, allocations: 0 / 434.1 MB, free: 2.246 MB / 334.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008035/0.2769, allocations: 0.4898 MB / 434.5 MB, free: 1.75 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.498e-05/0.2769, allocations: 11.98 kB / 434.6 MB, free: 1.738 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.266e-05/0.2769, allocations: 15.94 kB / 434.6 MB, free: 1.723 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.85e-05/0.277, allocations: 16 kB / 434.6 MB, free: 1.707 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003179/0.2773, allocations: 115.8 kB / 434.7 MB, free: 1.594 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.5e-05/0.2773, allocations: 27.86 kB / 434.7 MB, free: 1.566 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002561/0.2776, allocations: 51.72 kB / 434.8 MB, free: 1.516 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.976e-05/0.2776, allocations: 32.25 kB / 434.8 MB, free: 1.484 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.0002099/0.2778, allocations: 189.5 kB / 435 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006601/0.2785, allocations: 350.2 kB / 435.3 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007533/0.2792, allocations: 360.5 kB / 435.7 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.2792, allocations: 8 kB / 435.7 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.057e-05/0.2792, allocations: 4 kB / 435.7 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.777e-06/0.2793, allocations: 3.984 kB / 435.7 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004001/0.2797, allocations: 256.4 kB / 436 MB, free: 276 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.218e-06/0.2797, allocations: 4 kB / 436 MB, free: 272 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004079/0.2801, allocations: 99.88 kB / 436.1 MB, free: 172 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.2801, allocations: 0 / 436.1 MB, free: 172 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.3e-05/0.2801, allocations: 12 kB / 436.1 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.284e-06/0.2801, allocations: 7.984 kB / 436.1 MB, free: 152 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.225e-06/0.2801, allocations: 0 / 436.1 MB, free: 152 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001356/0.2815, allocations: 0.7787 MB / 436.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.155e-05/0.2815, allocations: 43.72 kB / 436.9 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.343e-05/0.2816, allocations: 16 kB / 436.9 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002462/0.2818, allocations: 28.03 kB / 436.9 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.197e-05/0.2819, allocations: 3.984 kB / 436.9 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.034e-05/0.2819, allocations: 20 kB / 437 MB, free: 15.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001835/0.2821, allocations: 181.2 kB / 437.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2821, allocations: 0 / 437.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005038/0.2826, allocations: 75.94 kB / 437.2 MB, free: 14.98 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.001707/0.2843, allocations: 1.358 MB / 438.6 MB, free: 13.6 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007243/0.285, allocations: 349.5 kB / 438.9 MB, free: 13.26 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.285, allocations: 0 / 438.9 MB, free: 13.26 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.727e-05/0.2851, allocations: 27.92 kB / 438.9 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001092/0.2862, allocations: 295.1 kB / 439.2 MB, free: 12.94 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00515/0.2914, allocations: 3.839 MB / 443.1 MB, free: 8.672 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002225/0.2916, allocations: 202.5 kB / 443.3 MB, free: 8.457 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001424/0.2917, allocations: 43.27 kB / 443.3 MB, free: 8.414 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001779/0.2919, allocations: 111.4 kB / 443.4 MB, free: 8.305 MB / 350.1 MB Notification: Performance of SimCode: time 7.32e-07/0.2919, allocations: 0 / 443.4 MB, free: 8.305 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04987/0.3418, allocations: 9.027 MB / 452.4 MB, free: 15.47 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.35/11.69, allocations: 4 kB / 452.4 MB, free: 15.47 MB / 366.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.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_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) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv","/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) [Timeout 660] "Error: Could not read variable PI.x in file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv. Warning: Get data of variable PI.x from file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv. Warning: Get data of variable PI.y from file Modelica_4.0.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.28509410098195]