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.001383/0.001383, allocations: 110.6 kB / 16.92 MB, free: 6.332 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.001263/0.001263, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.439/1.439, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00115/0.00115, allocations: 44.47 kB / 300.7 MB, free: 5.797 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09988/0.1011, allocations: 49.45 MB / 350.2 MB, free: 4.34 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.003229/0.1043, allocations: 1.849 MB / 352 MB, free: 2.469 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008739/0.1052, allocations: 454.8 kB / 352.5 MB, free: 2.02 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001354/0.1054, allocations: 4 kB / 352.5 MB, free: 2.016 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001242/0.1055, allocations: 11.86 kB / 352.5 MB, free: 2.004 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.246e-05/0.1056, allocations: 23.8 kB / 352.5 MB, free: 1.98 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001777/0.1058, allocations: 35.89 kB / 352.5 MB, free: 1.945 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001751/0.106, allocations: 99.66 kB / 352.6 MB, free: 1.848 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001524/0.1062, allocations: 41.36 kB / 352.7 MB, free: 1.805 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.586e-05/0.1063, allocations: 39.8 kB / 352.7 MB, free: 1.766 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.895e-05/0.1064, allocations: 43.78 kB / 352.7 MB, free: 1.723 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.277e-05/0.1064, allocations: 12 kB / 352.8 MB, free: 1.711 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.416e-05/0.1064, allocations: 8 kB / 352.8 MB, free: 1.703 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.947e-05/0.1065, allocations: 19.92 kB / 352.8 MB, free: 1.684 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.061e-05/0.1065, allocations: 47.73 kB / 352.8 MB, free: 1.637 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001539/0.1067, allocations: 99.95 kB / 352.9 MB, free: 1.539 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1067, allocations: 0 / 352.9 MB, free: 1.539 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.106e-06/0.1067, allocations: 0 / 352.9 MB, free: 1.539 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.1067, allocations: 3.938 kB / 352.9 MB, free: 1.535 MB / 286.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.0006023/0.1073, allocations: 411.3 kB / 353.3 MB, free: 1.086 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.1074, allocations: 11.97 kB / 353.3 MB, free: 1.074 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.805e-05/0.1075, allocations: 46.67 kB / 353.4 MB, free: 1.02 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.672e-05/0.1075, allocations: 8.844 kB / 353.4 MB, free: 1.012 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002048/0.1077, allocations: 200.1 kB / 353.6 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.234e-05/0.1077, allocations: 4.562 kB / 353.6 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.702e-05/0.1078, allocations: 12.12 kB / 353.6 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002713/0.108, allocations: 123.3 kB / 353.7 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.1081, allocations: 4 kB / 353.7 MB, free: 0.625 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.337e-05/0.1081, allocations: 4 kB / 353.7 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.1081, allocations: 4 kB / 353.7 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000229/0.1083, allocations: 67.89 kB / 353.8 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000644/0.109, allocations: 0.5208 MB / 354.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001968/0.1092, allocations: 86.52 kB / 354.4 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001129/0.1093, allocations: 36.84 kB / 354.5 MB, free: 15.83 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.187e-05/0.1093, allocations: 4 kB / 354.5 MB, free: 15.83 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.191e-05/0.1094, allocations: 34.56 kB / 354.5 MB, free: 15.79 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.1094, allocations: 0 / 354.5 MB, free: 15.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003974/0.1098, allocations: 125.7 kB / 354.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.716e-05/0.1098, allocations: 51.41 kB / 354.7 MB, free: 15.59 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.774e-05/0.1099, allocations: 137.3 kB / 354.8 MB, free: 15.45 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.27e-05/0.1099, allocations: 29.7 kB / 354.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.5e-05/0.11, allocations: 115.8 kB / 354.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.445e-05/0.11, allocations: 27.64 kB / 355 MB, free: 15.27 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.877e-05/0.1101, allocations: 25.72 kB / 355 MB, free: 15.24 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.1102, allocations: 326.8 kB / 355.3 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001123/0.1103, allocations: 31.97 kB / 355.3 MB, free: 14.88 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001452/0.1105, allocations: 69.64 kB / 355.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002352/0.1107, allocations: 96.2 kB / 355.5 MB, free: 14.69 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.1107, allocations: 8 kB / 355.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003071/0.1111, allocations: 141.3 kB / 355.6 MB, free: 14.54 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.1111, allocations: 11.94 kB / 355.7 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.81e-06/0.1111, allocations: 0 / 355.7 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.1111, allocations: 0 / 355.7 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001654/0.1113, allocations: 35.97 kB / 355.7 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.276e-06/0.1113, allocations: 8.188 kB / 355.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.263e-05/0.1114, allocations: 15.84 kB / 355.7 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.993e-06/0.1114, allocations: 4 kB / 355.7 MB, free: 14.46 MB / 302.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 9.061e-05/0.1115, allocations: 133.7 kB / 355.9 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.17e-05/0.1115, allocations: 7.906 kB / 355.9 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.41e-05/0.1116, allocations: 8.375 kB / 355.9 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.1116, allocations: 0 / 355.9 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.1116, allocations: 0 / 355.9 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.1116, allocations: 0 / 355.9 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002025/0.1118, allocations: 205.7 kB / 356.1 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.1118, allocations: 0 / 356.1 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001345/0.112, allocations: 23.98 kB / 356.1 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.112, allocations: 0 / 356.1 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.397e-06/0.112, allocations: 0 / 356.1 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.112, allocations: 0 / 356.1 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.112, allocations: 0 / 356.1 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003967/0.1124, allocations: 235.3 kB / 356.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.237e-05/0.1125, allocations: 89.05 kB / 356.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.994e-05/0.1125, allocations: 4 kB / 356.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.355e-05/0.1126, allocations: 4 kB / 356.4 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.785e-05/0.1126, allocations: 7.984 kB / 356.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.388e-06/0.1126, allocations: 0 / 356.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.991e-05/0.1127, allocations: 103.2 kB / 356.5 MB, free: 13.56 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1127, allocations: 0 / 356.5 MB, free: 13.56 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002611/0.113, allocations: 23.91 kB / 356.5 MB, free: 13.54 MB / 302.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.0006828/0.1137, allocations: 0.7747 MB / 357.3 MB, free: 12.74 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002757/0.114, allocations: 87.92 kB / 357.4 MB, free: 12.65 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.114, allocations: 0 / 357.4 MB, free: 12.65 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001085/0.1141, allocations: 35.97 kB / 357.4 MB, free: 12.62 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004017/0.1145, allocations: 25.81 kB / 357.5 MB, free: 12.6 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002004/0.1165, allocations: 1.724 MB / 359.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002435/0.1168, allocations: 0.7041 MB / 359.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.572e-05/0.1168, allocations: 8.422 kB / 359.9 MB, free: 10.03 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.483e-05/0.1169, allocations: 31.42 kB / 359.9 MB, free: 10 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1169, allocations: 0 / 359.9 MB, free: 10 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01936/0.1363, allocations: 2.342 MB / 362.3 MB, free: 7.754 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.747/7.883, allocations: 5.109 kB / 362.3 MB, free: 7.75 MB / 302.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