Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.001306/0.001306, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.001529/0.001529, allocations: 214.6 kB / 23.74 MB, free: 4.656 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.703/1.703, allocations: 230.6 MB / 257.5 MB, free: 8.039 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.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001809/0.001809, allocations: 43.94 kB / 377.8 MB, free: 3.172 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2892/0.2911, allocations: 53.36 MB / 431.1 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.004612/0.2957, allocations: 2.05 MB / 433.2 MB, free: 4.828 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001231/0.2969, allocations: 0.5726 MB / 433.7 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001267/0.297, allocations: 3.938 kB / 433.7 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001358/0.2972, allocations: 19.8 kB / 433.8 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001703/0.2973, allocations: 35.72 kB / 433.8 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002683/0.2976, allocations: 50.88 kB / 433.8 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002451/0.2978, allocations: 123.6 kB / 434 MB, free: 4.023 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001965/0.298, allocations: 49.5 kB / 434 MB, free: 3.969 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001089/0.2982, allocations: 47.86 kB / 434.1 MB, free: 3.922 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001212/0.2983, allocations: 59.69 kB / 434.1 MB, free: 3.863 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.317e-05/0.2983, allocations: 12 kB / 434.1 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.544e-05/0.2983, allocations: 16 kB / 434.1 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.088e-05/0.2984, allocations: 23.92 kB / 434.2 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.703e-05/0.2985, allocations: 55.67 kB / 434.2 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002531/0.2987, allocations: 135.8 kB / 434.4 MB, free: 3.629 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.2987, allocations: 0 / 434.4 MB, free: 3.629 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2987, allocations: 0 / 434.4 MB, free: 3.629 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.186e-05/0.2988, allocations: 4 kB / 434.4 MB, free: 3.625 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0007465/0.2995, allocations: 353.8 kB / 434.7 MB, free: 3.25 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/0.2995, allocations: 12.03 kB / 434.7 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.883e-05/0.2996, allocations: 50.73 kB / 434.8 MB, free: 3.18 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.554e-05/0.2997, allocations: 16.84 kB / 434.8 MB, free: 3.164 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003328/0.3, allocations: 162.2 kB / 434.9 MB, free: 2.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.073e-05/0.3, allocations: 8.375 kB / 435 MB, free: 2.973 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.308e-05/0.3001, allocations: 12.38 kB / 435 MB, free: 2.961 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006283/0.3007, allocations: 246.7 kB / 435.2 MB, free: 2.695 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.763e-05/0.3007, allocations: 0 / 435.2 MB, free: 2.695 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.658e-05/0.3007, allocations: 8 kB / 435.2 MB, free: 2.688 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.299e-05/0.3007, allocations: 0 / 435.2 MB, free: 2.688 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002926/0.301, allocations: 91.88 kB / 435.3 MB, free: 2.598 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008172/0.3019, allocations: 0.5349 MB / 435.8 MB, free: 2.004 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003986/0.3023, allocations: 143.9 kB / 436 MB, free: 1.836 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001626/0.3024, allocations: 66.64 kB / 436 MB, free: 1.762 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.715e-05/0.3025, allocations: 7.984 kB / 436.1 MB, free: 1.754 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.136e-05/0.3025, allocations: 42.5 kB / 436.1 MB, free: 1.703 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.303e-06/0.3025, allocations: 0 / 436.1 MB, free: 1.703 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005315/0.303, allocations: 177.4 kB / 436.3 MB, free: 1.523 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.348e-05/0.3031, allocations: 122.7 kB / 436.4 MB, free: 1.379 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001175/0.3032, allocations: 126.2 kB / 436.5 MB, free: 1.242 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.073e-05/0.3032, allocations: 37.83 kB / 436.5 MB, free: 1.199 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.011e-05/0.3033, allocations: 111.9 kB / 436.7 MB, free: 1.086 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.343e-05/0.3034, allocations: 23.84 kB / 436.7 MB, free: 1.062 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.866e-05/0.3034, allocations: 37.7 kB / 436.7 MB, free: 1.02 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.3036, allocations: 318.8 kB / 437 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001198/0.3037, allocations: 35.97 kB / 437.1 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001991/0.3039, allocations: 133.7 kB / 437.2 MB, free: 496 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000326/0.3042, allocations: 189.5 kB / 437.4 MB, free: 256 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.355e-06/0.3042, allocations: 7.938 kB / 437.4 MB, free: 248 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003789/0.3046, allocations: 197.2 kB / 437.6 MB, free: 44 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.3046, allocations: 4.469 kB / 437.6 MB, free: 40 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.3046, allocations: 4 kB / 437.6 MB, free: 36 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/0.3046, allocations: 8.234 kB / 437.6 MB, free: 28 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001746/0.3048, allocations: 47.91 kB / 437.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.224e-05/0.3048, allocations: 8.312 kB / 437.6 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001044/0.3049, allocations: 19.89 kB / 437.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.425e-05/0.3049, allocations: 8 kB / 437.7 MB, free: 15.95 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001376/0.3051, allocations: 142.2 kB / 437.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00016/0.3052, allocations: 93.56 kB / 437.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.913e-05/0.3053, allocations: 20.72 kB / 437.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.3053, allocations: 0 / 437.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.3053, allocations: 3.938 kB / 437.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.77e-06/0.3053, allocations: 7.984 kB / 437.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003137/0.3057, allocations: 176.6 kB / 438.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.3057, allocations: 0 / 438.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001814/0.3058, allocations: 35.97 kB / 438.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.3058, allocations: 0 / 438.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.952e-05/0.3059, allocations: 12 kB / 438.2 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3059, allocations: 0 / 438.2 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3059, allocations: 4 kB / 438.2 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006361/0.3065, allocations: 383.4 kB / 438.5 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.29e-05/0.3065, allocations: 15.88 kB / 438.6 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.036e-05/0.3065, allocations: 4 kB / 438.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001395/0.3067, allocations: 16.05 kB / 438.6 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.61e-05/0.3067, allocations: 3.938 kB / 438.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.496e-06/0.3067, allocations: 7.984 kB / 438.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.332e-05/0.3068, allocations: 106.1 kB / 438.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3068, allocations: 0 / 438.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003262/0.3071, allocations: 24 kB / 438.7 MB, free: 14.83 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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 Backend phase and start with SimCode phase: time 0.0008896/0.308, allocations: 0.9155 MB / 439.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003393/0.3084, allocations: 119.9 kB / 439.7 MB, free: 13.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3084, allocations: 0 / 439.7 MB, free: 13.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.841e-05/0.3085, allocations: 31.91 kB / 439.8 MB, free: 13.74 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004967/0.309, allocations: 52.31 kB / 439.8 MB, free: 13.69 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00261/0.3116, allocations: 2.062 MB / 441.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004332/0.312, allocations: 0.7123 MB / 442.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.55e-05/0.312, allocations: 9.094 kB / 442.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.89e-05/0.3121, allocations: 39.42 kB / 442.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3121, allocations: 0 / 442.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03236/0.3445, allocations: 3.004 MB / 445.7 MB, free: 7.801 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.68/12.03, allocations: 10.44 kB / 445.7 MB, free: 7.797 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController_fmu --startTime=0 --stopTime=3 --stepSize=0.000593942 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.797374381218106]