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.001245/0.001245, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001302/0.001302, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2089/0.2089, allocations: 46.11 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 81.86 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1057, allocations: 62.45 MB / 480.1 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegratorForceState): time 0.002835/0.1085, allocations: 1.565 MB / 481.7 MB, free: 3.609 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002428/0.1088, allocations: 71.78 kB / 481.8 MB, free: 3.539 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.166e-05/0.1089, allocations: 3.938 kB / 481.8 MB, free: 3.535 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.559e-05/0.109, allocations: 7.938 kB / 481.8 MB, free: 3.527 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.274e-05/0.109, allocations: 3.938 kB / 481.8 MB, free: 3.523 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001417/0.1092, allocations: 19.98 kB / 481.8 MB, free: 3.504 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001158/0.1093, allocations: 31.91 kB / 481.8 MB, free: 3.473 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000118/0.1094, allocations: 19.92 kB / 481.8 MB, free: 3.453 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.845e-05/0.1095, allocations: 8 kB / 481.9 MB, free: 3.445 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.781e-05/0.1095, allocations: 19.86 kB / 481.9 MB, free: 3.426 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.62e-05/0.1096, allocations: 0 / 481.9 MB, free: 3.426 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.724e-05/0.1096, allocations: 4 kB / 481.9 MB, free: 3.422 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.799e-05/0.1096, allocations: 8 kB / 481.9 MB, free: 3.414 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.73e-05/0.1097, allocations: 19.86 kB / 481.9 MB, free: 3.395 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001048/0.1098, allocations: 32.11 kB / 481.9 MB, free: 3.363 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1098, allocations: 0 / 481.9 MB, free: 3.363 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1098, allocations: 0 / 481.9 MB, free: 3.363 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.548e-06/0.1098, allocations: 0 / 481.9 MB, free: 3.363 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.0004467/0.1103, allocations: 355.4 kB / 482.3 MB, free: 2.965 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.1103, allocations: 8.031 kB / 482.3 MB, free: 2.957 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.174e-05/0.1103, allocations: 34.75 kB / 482.3 MB, free: 2.914 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.041e-05/0.1104, allocations: 16.84 kB / 482.3 MB, free: 2.898 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001818/0.1106, allocations: 176.2 kB / 482.5 MB, free: 2.688 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.812e-05/0.1106, allocations: 4.375 kB / 482.5 MB, free: 2.684 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.882e-05/0.1106, allocations: 8.312 kB / 482.5 MB, free: 2.676 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001659/0.1108, allocations: 76.75 kB / 482.6 MB, free: 2.586 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.1108, allocations: 7.922 kB / 482.6 MB, free: 2.578 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.039e-05/0.1108, allocations: 0 / 482.6 MB, free: 2.578 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.1108, allocations: 4 kB / 482.6 MB, free: 2.574 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.81e-05/0.1109, allocations: 27.92 kB / 482.6 MB, free: 2.547 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005232/0.1115, allocations: 445.2 kB / 483.1 MB, free: 2.055 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000158/0.1117, allocations: 46.5 kB / 483.1 MB, free: 2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.11e-05/0.1117, allocations: 12.86 kB / 483.1 MB, free: 1.984 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.936e-05/0.1117, allocations: 7.938 kB / 483.1 MB, free: 1.977 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.18e-05/0.1118, allocations: 34.64 kB / 483.2 MB, free: 1.934 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.352e-06/0.1118, allocations: 0 / 483.2 MB, free: 1.934 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004919/0.1123, allocations: 109.4 kB / 483.3 MB, free: 1.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.68e-05/0.1123, allocations: 55.41 kB / 483.3 MB, free: 1.754 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.989e-05/0.1124, allocations: 113.8 kB / 483.4 MB, free: 1.633 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.626e-05/0.1124, allocations: 29.7 kB / 483.5 MB, free: 1.598 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.399e-05/0.1125, allocations: 87.98 kB / 483.6 MB, free: 1.508 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.448e-05/0.1125, allocations: 15.81 kB / 483.6 MB, free: 1.492 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.423e-05/0.1126, allocations: 21.7 kB / 483.6 MB, free: 1.465 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.1127, allocations: 322.8 kB / 483.9 MB, free: 1.141 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.169e-05/0.1128, allocations: 19.98 kB / 483.9 MB, free: 1.121 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.831e-05/0.1128, allocations: 39.42 kB / 484 MB, free: 1.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001078/0.1129, allocations: 55.36 kB / 484 MB, free: 1.004 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.22e-07/0.113, allocations: 4 kB / 484 MB, free: 1 MB / 350.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001619/0.1131, allocations: 85.52 kB / 484.1 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.1131, allocations: 4 kB / 484.1 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.99e-06/0.1132, allocations: 0 / 484.1 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.1132, allocations: 4 kB / 484.1 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.532e-05/0.1132, allocations: 15.92 kB / 484.1 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.1133, allocations: 0 / 484.1 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.73e-05/0.1133, allocations: 4 kB / 484.1 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.517e-06/0.1133, allocations: 8.094 kB / 484.1 MB, free: 0.875 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 9.986e-05/0.1134, allocations: 117.8 kB / 484.3 MB, free: 0.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.46e-05/0.1135, allocations: 0 / 484.3 MB, free: 0.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.826e-05/0.1135, allocations: 11.89 kB / 484.3 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.1135, allocations: 7.938 kB / 484.3 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.1135, allocations: 0 / 484.3 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.1135, allocations: 384 / 484.3 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001611/0.1137, allocations: 169.6 kB / 484.4 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.1137, allocations: 384 / 484.4 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.672e-05/0.1138, allocations: 12 kB / 484.5 MB, free: 0.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.1138, allocations: 7.938 kB / 484.5 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.014e-05/0.1138, allocations: 7.969 kB / 484.5 MB, free: 496 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.1138, allocations: 7.938 kB / 484.5 MB, free: 488 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1138, allocations: 0 / 484.5 MB, free: 488 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002348/0.1141, allocations: 179.4 kB / 484.7 MB, free: 292 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.261e-05/0.1141, allocations: 77.11 kB / 484.7 MB, free: 196 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.518e-05/0.1141, allocations: 8.047 kB / 484.7 MB, free: 188 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.055e-05/0.1142, allocations: 4.031 kB / 484.7 MB, free: 184 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.478e-05/0.1142, allocations: 0 / 484.7 MB, free: 184 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.266e-06/0.1142, allocations: 0 / 484.7 MB, free: 184 kB / 350.1 MB Notification: Performance of sorting global known variables: time 4.693e-05/0.1143, allocations: 91.27 kB / 484.8 MB, free: 92 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1143, allocations: 0 / 484.8 MB, free: 92 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002202/0.1145, allocations: 15.94 kB / 484.8 MB, free: 76 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.0004906/0.115, allocations: 0.7046 MB / 485.6 MB, free: 15.34 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001428/0.1151, allocations: 43.91 kB / 485.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1152, allocations: 0 / 485.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.289e-05/0.1152, allocations: 12 kB / 485.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003167/0.1155, allocations: 12.23 kB / 485.6 MB, free: 15.28 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001414/0.117, allocations: 1.372 MB / 487 MB, free: 13.81 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002398/0.1172, allocations: 0.6846 MB / 487.7 MB, free: 13.1 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.114e-05/0.1173, allocations: 4 kB / 487.7 MB, free: 13.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.864e-05/0.1173, allocations: 15.44 kB / 487.7 MB, free: 13.08 MB / 366.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1173, allocations: 0 / 487.7 MB, free: 13.08 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01992/0.1372, allocations: 1.466 MB / 489.2 MB, free: 11.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.419/7.556, allocations: 20.09 kB / 489.2 MB, free: 11.64 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_IntegratorForceState_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_IntegratorForceState.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState_res.mat","/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