Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.IntegratorForceState,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_IntegratorForceState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.IntegratorForceState,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_IntegratorForceState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001591/0.001591, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002153/0.002153, allocations: 208.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2058/0.2058, allocations: 46.1 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 78.55 kB / 417.7 MB, free: 19.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1055, allocations: 62.44 MB / 480.1 MB, free: 5.203 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegratorForceState): time 0.002567/0.1081, allocations: 1.569 MB / 481.7 MB, free: 3.625 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000225/0.1084, allocations: 67.77 kB / 481.8 MB, free: 3.559 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.364e-05/0.1084, allocations: 0 / 481.8 MB, free: 3.559 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.057e-05/0.1086, allocations: 11.92 kB / 481.8 MB, free: 3.547 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.954e-05/0.1086, allocations: 11.94 kB / 481.8 MB, free: 3.535 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001207/0.1087, allocations: 19.92 kB / 481.8 MB, free: 3.516 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.506e-05/0.1088, allocations: 31.86 kB / 481.8 MB, free: 3.484 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.201e-05/0.1089, allocations: 15.98 kB / 481.8 MB, free: 3.469 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.416e-05/0.1089, allocations: 11.98 kB / 481.9 MB, free: 3.457 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.959e-05/0.109, allocations: 19.86 kB / 481.9 MB, free: 3.438 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.437e-05/0.109, allocations: 4 kB / 481.9 MB, free: 3.434 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.207e-06/0.109, allocations: 0 / 481.9 MB, free: 3.434 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.566e-05/0.1091, allocations: 7.984 kB / 481.9 MB, free: 3.426 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.647e-05/0.1091, allocations: 19.88 kB / 481.9 MB, free: 3.406 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.909e-05/0.1092, allocations: 24.19 kB / 481.9 MB, free: 3.383 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1092, allocations: 4 kB / 481.9 MB, free: 3.379 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.654e-06/0.1092, allocations: 0 / 481.9 MB, free: 3.379 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.349e-06/0.1092, allocations: 0 / 481.9 MB, free: 3.379 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003714/0.1096, allocations: 351.4 kB / 482.3 MB, free: 2.984 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.292e-05/0.1096, allocations: 8.031 kB / 482.3 MB, free: 2.977 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.203e-05/0.1096, allocations: 34.73 kB / 482.3 MB, free: 2.934 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.632e-05/0.1097, allocations: 16.78 kB / 482.3 MB, free: 2.918 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000145/0.1098, allocations: 192.1 kB / 482.5 MB, free: 2.691 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.845e-06/0.1098, allocations: 384 / 482.5 MB, free: 2.691 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.859e-05/0.1099, allocations: 4.375 kB / 482.5 MB, free: 2.688 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001386/0.11, allocations: 68.81 kB / 482.6 MB, free: 2.605 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.214e-06/0.11, allocations: 3.938 kB / 482.6 MB, free: 2.602 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.057e-06/0.11, allocations: 4 kB / 482.6 MB, free: 2.598 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.1101, allocations: 0 / 482.6 MB, free: 2.598 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.875e-05/0.1101, allocations: 31.92 kB / 482.6 MB, free: 2.566 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004576/0.1106, allocations: 441.2 kB / 483.1 MB, free: 2.078 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001513/0.1108, allocations: 42.56 kB / 483.1 MB, free: 2.027 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.971e-05/0.1108, allocations: 20.94 kB / 483.1 MB, free: 2.004 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.37e-05/0.1109, allocations: 0 / 483.1 MB, free: 2.004 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.795e-05/0.1109, allocations: 30.56 kB / 483.2 MB, free: 1.965 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 7.92e-07/0.1109, allocations: 0 / 483.2 MB, free: 1.965 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004351/0.1113, allocations: 109.4 kB / 483.3 MB, free: 1.852 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.168e-05/0.1114, allocations: 55.41 kB / 483.3 MB, free: 1.785 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.404e-05/0.1114, allocations: 117.8 kB / 483.4 MB, free: 1.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.337e-05/0.1115, allocations: 25.7 kB / 483.5 MB, free: 1.629 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.924e-05/0.1115, allocations: 95.98 kB / 483.6 MB, free: 1.531 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.272e-05/0.1115, allocations: 15.8 kB / 483.6 MB, free: 1.516 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.664e-05/0.1116, allocations: 17.72 kB / 483.6 MB, free: 1.492 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.423e-05/0.1117, allocations: 322.8 kB / 483.9 MB, free: 1.168 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.356e-05/0.1117, allocations: 19.94 kB / 483.9 MB, free: 1.148 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.814e-05/0.1118, allocations: 43.41 kB / 484 MB, free: 1.094 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000109/0.1119, allocations: 63.34 kB / 484 MB, free: 1.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.1119, allocations: 4 kB / 484 MB, free: 1.016 MB / 350.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000161/0.1121, allocations: 85.52 kB / 484.1 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.1121, allocations: 6.344 kB / 484.1 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.1121, allocations: 0 / 484.1 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.1121, allocations: 4 kB / 484.1 MB, free: 0.918 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.158e-05/0.1122, allocations: 8 kB / 484.1 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.686e-06/0.1122, allocations: 4 kB / 484.1 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.033e-05/0.1123, allocations: 8.297 kB / 484.1 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.704e-06/0.1123, allocations: 8.094 kB / 484.1 MB, free: 0.8906 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 1 (integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 7.27e-05/0.1124, allocations: 117.8 kB / 484.3 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.618e-05/0.1124, allocations: 7.922 kB / 484.3 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.305e-05/0.1124, allocations: 11.91 kB / 484.3 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.1124, allocations: 0 / 484.3 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.1124, allocations: 0 / 484.3 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.1124, allocations: 0 / 484.3 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001546/0.1126, allocations: 169.6 kB / 484.4 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.1126, allocations: 0 / 484.4 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.543e-05/0.1127, allocations: 15.98 kB / 484.5 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.1127, allocations: 4 kB / 484.5 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.098e-05/0.1127, allocations: 4 kB / 484.5 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.1127, allocations: 0 / 484.5 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1127, allocations: 0 / 484.5 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002172/0.113, allocations: 187.3 kB / 484.7 MB, free: 312 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.726e-05/0.113, allocations: 77.11 kB / 484.7 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.559e-05/0.113, allocations: 4.031 kB / 484.7 MB, free: 212 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.238e-05/0.1131, allocations: 4.438 kB / 484.7 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.536e-05/0.1131, allocations: 3.984 kB / 484.7 MB, free: 204 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.86e-06/0.1131, allocations: 4 kB / 484.7 MB, free: 200 kB / 350.1 MB Notification: Performance of sorting global known variables: time 4.523e-05/0.1132, allocations: 91.22 kB / 484.8 MB, free: 108 kB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1132, allocations: 0 / 484.8 MB, free: 108 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002246/0.1134, allocations: 7.938 kB / 484.8 MB, free: 100 kB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (gain.y) * 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 (4): * Single equations (assignments): 4 * 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.0004838/0.1139, allocations: 0.7085 MB / 485.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001383/0.1141, allocations: 43.91 kB / 485.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1141, allocations: 0 / 485.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.647e-05/0.1141, allocations: 19.98 kB / 485.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002726/0.1144, allocations: 4 kB / 485.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001261/0.1157, allocations: 1.368 MB / 487 MB, free: 13.83 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002084/0.1159, allocations: 0.6807 MB / 487.7 MB, free: 13.12 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.069e-05/0.1159, allocations: 7.938 kB / 487.7 MB, free: 13.12 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.252e-05/0.116, allocations: 19.42 kB / 487.7 MB, free: 13.1 MB / 366.1 MB Notification: Performance of SimCode: time 1.492e-06/0.116, allocations: 0 / 487.7 MB, free: 13.1 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01793/0.1339, allocations: 1.472 MB / 489.2 MB, free: 11.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.306/7.44, allocations: 13.06 kB / 489.2 MB, free: 11.67 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_trunk_ModelicaTest_Blocks_IntegratorForceState.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/IntegratorForceState/IntegratorForceState.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches