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.001358/0.001358, allocations: 115.6 kB / 20.43 MB, free: 1.457 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.001519/0.001519, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.536/1.536, allocations: 230.6 MB / 257.5 MB, free: 8.008 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.001577/0.001577, allocations: 43.92 kB / 377.8 MB, free: 3.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2994/0.301, allocations: 53.36 MB / 431.1 MB, free: 7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.004827/0.3058, allocations: 2.74 MB / 433.9 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002186/0.308, allocations: 0.9582 MB / 434.8 MB, free: 3.289 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004017/0.3084, allocations: 15.88 kB / 434.8 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003029/0.3087, allocations: 63.31 kB / 434.9 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003674/0.3091, allocations: 67.44 kB / 435 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000992/0.3101, allocations: 243.1 kB / 435.2 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006008/0.3107, allocations: 382.9 kB / 435.6 MB, free: 2.535 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003835/0.311, allocations: 141.4 kB / 435.7 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002372/0.3113, allocations: 143.4 kB / 435.8 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002442/0.3115, allocations: 147.2 kB / 436 MB, free: 2.109 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.124e-05/0.3116, allocations: 32 kB / 436 MB, free: 2.078 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000169/0.3118, allocations: 71.91 kB / 436.1 MB, free: 2.008 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000147/0.3119, allocations: 87.61 kB / 436.2 MB, free: 1.922 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001968/0.3121, allocations: 155.1 kB / 436.3 MB, free: 1.77 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007027/0.3128, allocations: 422.5 kB / 436.7 MB, free: 1.359 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.3128, allocations: 0 / 436.7 MB, free: 1.359 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3128, allocations: 4 kB / 436.7 MB, free: 1.355 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.726e-06/0.3128, allocations: 4 kB / 436.7 MB, free: 1.352 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.00124/0.3141, allocations: 0.5674 MB / 437.3 MB, free: 0.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.657e-05/0.3141, allocations: 16.02 kB / 437.3 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.394e-05/0.3142, allocations: 62.73 kB / 437.4 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.758e-05/0.3143, allocations: 40.7 kB / 437.4 MB, free: 0.625 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005806/0.3149, allocations: 269.9 kB / 437.7 MB, free: 344 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.15e-05/0.3149, allocations: 25.03 kB / 437.7 MB, free: 320 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.306e-05/0.315, allocations: 32.11 kB / 437.7 MB, free: 288 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001514/0.3165, allocations: 0.741 MB / 438.5 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.796e-05/0.3165, allocations: 7.938 kB / 438.5 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.602e-05/0.3166, allocations: 15.98 kB / 438.5 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.202e-05/0.3166, allocations: 4 kB / 438.5 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005844/0.3172, allocations: 215.8 kB / 438.7 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001112/0.3183, allocations: 0.711 MB / 439.4 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001064/0.3193, allocations: 456.7 kB / 439.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004822/0.3198, allocations: 251.7 kB / 440.1 MB, free: 13.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004496/0.3203, allocations: 75.64 kB / 440.2 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.735e-05/0.3203, allocations: 46.66 kB / 440.3 MB, free: 13.63 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 2.816e-06/0.3203, allocations: 3.938 kB / 440.3 MB, free: 13.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.001305/0.3216, allocations: 0.5209 MB / 440.8 MB, free: 13.1 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001804/0.3218, allocations: 211.9 kB / 441 MB, free: 12.85 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003085/0.3221, allocations: 245.9 kB / 441.2 MB, free: 12.6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.249e-05/0.3222, allocations: 33.7 kB / 441.3 MB, free: 12.56 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000128/0.3223, allocations: 148.9 kB / 441.4 MB, free: 12.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.379e-05/0.3224, allocations: 59.7 kB / 441.5 MB, free: 12.35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001118/0.3225, allocations: 82.22 kB / 441.5 MB, free: 12.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001896/0.3227, allocations: 342.8 kB / 441.9 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002122/0.3229, allocations: 88.94 kB / 442 MB, free: 11.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005446/0.3234, allocations: 438 kB / 442.4 MB, free: 11.24 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008241/0.3242, allocations: 0.5243 MB / 442.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.338e-06/0.3242, allocations: 8 kB / 442.9 MB, free: 10.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008929/0.3251, allocations: 0.4895 MB / 443.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.758e-05/0.3252, allocations: 15.94 kB / 443.4 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.852e-05/0.3252, allocations: 12 kB / 443.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.214e-05/0.3252, allocations: 16 kB / 443.5 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003438/0.3256, allocations: 119.8 kB / 443.6 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.267e-05/0.3256, allocations: 23.92 kB / 443.6 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002843/0.3259, allocations: 56.23 kB / 443.6 MB, free: 9.809 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.66e-05/0.3259, allocations: 31.98 kB / 443.7 MB, free: 9.777 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.0003229/0.3262, allocations: 199 kB / 443.9 MB, free: 9.574 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006832/0.3269, allocations: 342.1 kB / 444.2 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007546/0.3277, allocations: 360.7 kB / 444.6 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.468e-06/0.3277, allocations: 4 kB / 444.6 MB, free: 8.867 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/0.3277, allocations: 4 kB / 444.6 MB, free: 8.863 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.3277, allocations: 0 / 444.6 MB, free: 8.863 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004462/0.3281, allocations: 312.2 kB / 444.9 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.061e-05/0.3281, allocations: 4 kB / 444.9 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004034/0.3286, allocations: 99.88 kB / 445 MB, free: 8.414 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.796e-06/0.3286, allocations: 4 kB / 445 MB, free: 8.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.663e-05/0.3286, allocations: 16 kB / 445 MB, free: 8.395 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.3286, allocations: 0 / 445 MB, free: 8.395 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.3286, allocations: 7.938 kB / 445 MB, free: 8.387 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00135/0.3299, allocations: 0.7747 MB / 445.8 MB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.477e-05/0.33, allocations: 39.72 kB / 445.8 MB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.71e-05/0.3301, allocations: 12 kB / 445.8 MB, free: 7.539 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002599/0.3303, allocations: 27.97 kB / 445.9 MB, free: 7.512 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.99e-05/0.3304, allocations: 8.062 kB / 445.9 MB, free: 7.504 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.872e-05/0.3304, allocations: 19.98 kB / 445.9 MB, free: 7.484 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002055/0.3306, allocations: 177.2 kB / 446.1 MB, free: 7.312 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3306, allocations: 0 / 446.1 MB, free: 7.312 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005777/0.3312, allocations: 83.83 kB / 446.1 MB, free: 7.23 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.001797/0.333, allocations: 1.344 MB / 447.5 MB, free: 5.852 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000887/0.3339, allocations: 361 kB / 447.8 MB, free: 5.504 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.3339, allocations: 0 / 447.8 MB, free: 5.504 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.645e-05/0.334, allocations: 23.98 kB / 447.9 MB, free: 5.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001176/0.3352, allocations: 302.1 kB / 448.2 MB, free: 5.184 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005712/0.3409, allocations: 3.826 MB / 452 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004962/0.3414, allocations: 0.812 MB / 452.8 MB, free: 96 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001482/0.3415, allocations: 39.27 kB / 452.8 MB, free: 52 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002592/0.3418, allocations: 115.5 kB / 452.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of SimCode: time 1.092e-06/0.3418, allocations: 0 / 452.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04319/0.385, allocations: 8.552 MB / 461.5 MB, free: 7.555 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.87/12.26, allocations: 9.656 kB / 461.5 MB, free: 7.551 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.984191275001649]