Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00135/0.001357, allocations: 114 kB / 17.06 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001325/0.001325, allocations: 189.4 kB / 18 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.517/1.517, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001563/0.001563, allocations: 51.92 kB / 350.8 MB, free: 3.797 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2867/0.2883, allocations: 49.44 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.00414/0.2924, allocations: 1.861 MB / 402.1 MB, free: 6.973 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001045/0.2935, allocations: 458.8 kB / 402.5 MB, free: 6.52 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001462/0.2937, allocations: 4 kB / 402.5 MB, free: 6.516 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001319/0.2939, allocations: 11.81 kB / 402.5 MB, free: 6.504 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001068/0.294, allocations: 23.78 kB / 402.6 MB, free: 6.48 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001674/0.2942, allocations: 27.97 kB / 402.6 MB, free: 6.453 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000212/0.2944, allocations: 107.6 kB / 402.7 MB, free: 6.348 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000166/0.2946, allocations: 41.38 kB / 402.7 MB, free: 6.305 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.503e-05/0.2947, allocations: 39.84 kB / 402.8 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001471/0.2948, allocations: 43.78 kB / 402.8 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.209e-05/0.2949, allocations: 12 kB / 402.8 MB, free: 6.211 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.168e-05/0.2949, allocations: 12 kB / 402.8 MB, free: 6.199 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.314e-05/0.2949, allocations: 19.91 kB / 402.9 MB, free: 6.18 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.721e-05/0.295, allocations: 55.67 kB / 402.9 MB, free: 6.125 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002174/0.2952, allocations: 94.58 kB / 403 MB, free: 6.035 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.2952, allocations: 0 / 403 MB, free: 6.035 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.2952, allocations: 0 / 403 MB, free: 6.035 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.785e-06/0.2953, allocations: 0 / 403 MB, free: 6.035 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0006798/0.2959, allocations: 415.2 kB / 403.4 MB, free: 5.582 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.781e-05/0.296, allocations: 15.89 kB / 403.4 MB, free: 5.566 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.95e-05/0.2961, allocations: 38.75 kB / 403.5 MB, free: 5.52 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.783e-05/0.2961, allocations: 12.84 kB / 403.5 MB, free: 5.508 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003474/0.2965, allocations: 200.1 kB / 403.7 MB, free: 5.273 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.692e-05/0.2965, allocations: 4.562 kB / 403.7 MB, free: 5.27 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.493e-05/0.2965, allocations: 16.12 kB / 403.7 MB, free: 5.254 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00032/0.2969, allocations: 121 kB / 403.8 MB, free: 5.125 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.783e-05/0.2969, allocations: 4 kB / 403.8 MB, free: 5.121 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.503e-05/0.2969, allocations: 4 kB / 403.8 MB, free: 5.117 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.435e-06/0.2969, allocations: 4 kB / 403.8 MB, free: 5.113 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002467/0.2972, allocations: 67.88 kB / 403.9 MB, free: 5.047 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008412/0.298, allocations: 0.5247 MB / 404.4 MB, free: 4.453 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002257/0.2983, allocations: 78.55 kB / 404.5 MB, free: 4.367 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001276/0.2984, allocations: 40.83 kB / 404.5 MB, free: 4.324 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.64e-05/0.2984, allocations: 0 / 404.5 MB, free: 4.324 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.151e-05/0.2985, allocations: 34.56 kB / 404.6 MB, free: 4.281 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.072e-06/0.2985, allocations: 4 kB / 404.6 MB, free: 4.277 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005042/0.299, allocations: 125.9 kB / 404.7 MB, free: 4.148 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.341e-05/0.2991, allocations: 51.41 kB / 404.7 MB, free: 4.086 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001323/0.2992, allocations: 125.8 kB / 404.9 MB, free: 3.953 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.293e-05/0.2992, allocations: 33.64 kB / 404.9 MB, free: 3.914 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.302e-05/0.2993, allocations: 115.9 kB / 405 MB, free: 3.797 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.251e-05/0.2994, allocations: 35.69 kB / 405 MB, free: 3.762 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.985e-05/0.2995, allocations: 29.7 kB / 405.1 MB, free: 3.727 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.2996, allocations: 326.7 kB / 405.4 MB, free: 3.398 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001186/0.2997, allocations: 31.98 kB / 405.4 MB, free: 3.367 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001356/0.2999, allocations: 64.27 kB / 405.5 MB, free: 3.289 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002573/0.3001, allocations: 104.2 kB / 405.6 MB, free: 3.172 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.3002, allocations: 0 / 405.6 MB, free: 3.172 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003407/0.3005, allocations: 141.5 kB / 405.7 MB, free: 3.027 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.3005, allocations: 4 kB / 405.7 MB, free: 3.023 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.207e-06/0.3005, allocations: 4 kB / 405.7 MB, free: 3.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.3006, allocations: 0 / 405.7 MB, free: 3.02 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001743/0.3007, allocations: 31.92 kB / 405.8 MB, free: 2.988 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/0.3008, allocations: 4 kB / 405.8 MB, free: 2.984 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.624e-05/0.3009, allocations: 19.94 kB / 405.8 MB, free: 2.965 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.258e-05/0.3009, allocations: 4.125 kB / 405.8 MB, free: 2.961 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001232/0.301, allocations: 125.7 kB / 405.9 MB, free: 2.828 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.713e-05/0.3011, allocations: 7.953 kB / 405.9 MB, free: 2.82 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.054e-05/0.3011, allocations: 16.36 kB / 405.9 MB, free: 2.805 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.3011, allocations: 0 / 405.9 MB, free: 2.805 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.3011, allocations: 0 / 405.9 MB, free: 2.805 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.682e-06/0.3011, allocations: 0 / 405.9 MB, free: 2.805 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002503/0.3014, allocations: 201.5 kB / 406.1 MB, free: 2.559 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.3014, allocations: 0 / 406.1 MB, free: 2.559 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001503/0.3016, allocations: 27.98 kB / 406.2 MB, free: 2.531 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.191e-06/0.3016, allocations: 4 kB / 406.2 MB, free: 2.527 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.283e-05/0.3016, allocations: 0 / 406.2 MB, free: 2.527 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.983e-06/0.3016, allocations: 96 / 406.2 MB, free: 2.527 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3016, allocations: 4.25 kB / 406.2 MB, free: 2.523 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004551/0.3021, allocations: 235.3 kB / 406.4 MB, free: 2.277 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.799e-05/0.3021, allocations: 89.06 kB / 406.5 MB, free: 2.172 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.896e-05/0.3022, allocations: 0 / 406.5 MB, free: 2.172 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.407e-05/0.3023, allocations: 12.03 kB / 406.5 MB, free: 2.16 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.652e-05/0.3023, allocations: 11.92 kB / 406.5 MB, free: 2.148 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.107e-06/0.3023, allocations: 0 / 406.5 MB, free: 2.148 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.957e-05/0.3024, allocations: 106.3 kB / 406.6 MB, free: 2.047 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3024, allocations: 0 / 406.6 MB, free: 2.047 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002546/0.3027, allocations: 23.89 kB / 406.6 MB, free: 2.023 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (load.phi,load.w,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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.0007954/0.3035, allocations: 0.767 MB / 407.4 MB, free: 1.23 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002945/0.3038, allocations: 84.03 kB / 407.5 MB, free: 1.148 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3038, allocations: 4.062 kB / 407.5 MB, free: 1.145 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001096/0.3039, allocations: 35.98 kB / 407.5 MB, free: 1.109 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003504/0.3043, allocations: 15.98 kB / 407.5 MB, free: 1.094 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002484/0.3068, allocations: 1.735 MB / 409.3 MB, free: 15.25 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003867/0.3072, allocations: 0.7039 MB / 410 MB, free: 14.52 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.759e-05/0.3072, allocations: 8.422 kB / 410 MB, free: 14.52 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.413e-05/0.3073, allocations: 23.44 kB / 410 MB, free: 14.49 MB / 334.1 MB Notification: Performance of SimCode: time 2.494e-06/0.3073, allocations: 4 kB / 410 MB, free: 14.49 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02658/0.3339, allocations: 2.391 MB / 412.4 MB, free: 12.21 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.355/8.689, allocations: 19.52 kB / 412.4 MB, free: 12.2 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches