Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaTest.Blocks.IntegratorForceState,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_IntegratorForceState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.IntegratorForceState,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_IntegratorForceState",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.00116/0.00116, allocations: 103.5 kB / 16.27 MB, free: 5.977 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.001273/0.001273, allocations: 192.1 kB / 17.2 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.849/1.849, allocations: 205.1 MB / 223.1 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2603/0.2603, allocations: 43.53 MB / 313.9 MB, free: 0.5273 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001548/0.001548, allocations: 71.17 kB / 382.8 MB, free: 56.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1412/0.1427, allocations: 57.79 MB / 440.6 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegratorForceState): time 0.002787/0.1456, allocations: 1.535 MB / 442.1 MB, free: 5.266 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002264/0.1458, allocations: 67.78 kB / 442.2 MB, free: 5.199 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.336e-05/0.1459, allocations: 0 / 442.2 MB, free: 5.199 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.861e-05/0.146, allocations: 11.94 kB / 442.2 MB, free: 5.188 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 3.089e-05/0.146, allocations: 3.938 kB / 442.2 MB, free: 5.184 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001257/0.1462, allocations: 23.91 kB / 442.3 MB, free: 5.16 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.424e-05/0.1463, allocations: 39.86 kB / 442.3 MB, free: 5.121 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001022/0.1464, allocations: 11.92 kB / 442.3 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.504e-05/0.1464, allocations: 11.94 kB / 442.3 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.327e-05/0.1465, allocations: 15.92 kB / 442.3 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.374e-05/0.1465, allocations: 4 kB / 442.3 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.686e-06/0.1465, allocations: 4 kB / 442.3 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.431e-05/0.1465, allocations: 11.94 kB / 442.3 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.533e-05/0.1466, allocations: 15.92 kB / 442.4 MB, free: 5.047 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 8.611e-05/0.1466, allocations: 43.77 kB / 442.4 MB, free: 5.004 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.1467, allocations: 0 / 442.4 MB, free: 5.004 MB / 318.1 MB Notification: Performance of FrontEnd: time 8.31e-07/0.1467, allocations: 0 / 442.4 MB, free: 5.004 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.991e-06/0.1467, allocations: 0 / 442.4 MB, free: 5.004 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003756/0.147, allocations: 347.3 kB / 442.7 MB, free: 4.613 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.685e-05/0.1471, allocations: 11.89 kB / 442.8 MB, free: 4.602 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.759e-05/0.1471, allocations: 46.69 kB / 442.8 MB, free: 4.547 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.821e-05/0.1472, allocations: 4.844 kB / 442.8 MB, free: 4.543 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000125/0.1473, allocations: 176.4 kB / 443 MB, free: 4.332 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.318e-06/0.1473, allocations: 4.375 kB / 443 MB, free: 4.328 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.717e-05/0.1473, allocations: 4.375 kB / 443 MB, free: 4.324 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001381/0.1475, allocations: 67.12 kB / 443.1 MB, free: 4.246 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.1475, allocations: 3.938 kB / 443.1 MB, free: 4.242 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.825e-06/0.1475, allocations: 3.938 kB / 443.1 MB, free: 4.238 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/0.1475, allocations: 8 kB / 443.1 MB, free: 4.23 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.369e-05/0.1476, allocations: 19.98 kB / 443.1 MB, free: 4.211 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003954/0.148, allocations: 449.1 kB / 443.5 MB, free: 3.715 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001447/0.1481, allocations: 50.55 kB / 443.6 MB, free: 3.656 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.397e-05/0.1482, allocations: 16.86 kB / 443.6 MB, free: 3.637 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.127e-05/0.1482, allocations: 0 / 443.6 MB, free: 3.637 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.349e-05/0.1482, allocations: 34.56 kB / 443.6 MB, free: 3.594 MB / 318.1 MB Notification: Performance of pre-optimization done (n=3): time 7.21e-07/0.1482, allocations: 0 / 443.6 MB, free: 3.594 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004148/0.1487, allocations: 121.4 kB / 443.7 MB, free: 3.469 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.45e-05/0.1487, allocations: 51.41 kB / 443.8 MB, free: 3.406 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.887e-05/0.1488, allocations: 113.8 kB / 443.9 MB, free: 3.285 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.012e-05/0.1488, allocations: 25.7 kB / 443.9 MB, free: 3.254 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.679e-05/0.1488, allocations: 96.03 kB / 444 MB, free: 3.156 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.168e-05/0.1488, allocations: 7.812 kB / 444 MB, free: 3.148 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.311e-05/0.1489, allocations: 25.66 kB / 444.1 MB, free: 3.117 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.602e-05/0.1489, allocations: 326.7 kB / 444.4 MB, free: 2.789 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.209e-05/0.149, allocations: 16 kB / 444.4 MB, free: 2.773 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.623e-05/0.149, allocations: 39.42 kB / 444.4 MB, free: 2.723 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.982e-05/0.1491, allocations: 67.72 kB / 444.5 MB, free: 2.645 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.92e-07/0.1491, allocations: 0 / 444.5 MB, free: 2.645 MB / 318.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001318/0.1493, allocations: 77.61 kB / 444.6 MB, free: 2.562 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.148e-05/0.1493, allocations: 4 kB / 444.6 MB, free: 2.559 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.1493, allocations: 3.938 kB / 444.6 MB, free: 2.555 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.1493, allocations: 4 kB / 444.6 MB, free: 2.551 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.284e-05/0.1494, allocations: 8 kB / 444.6 MB, free: 2.543 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.802e-06/0.1494, allocations: 7.938 kB / 444.6 MB, free: 2.535 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.746e-05/0.1494, allocations: 12.08 kB / 444.6 MB, free: 2.523 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.139e-06/0.1495, allocations: 4 kB / 444.6 MB, free: 2.52 MB / 318.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 6.48e-05/0.1495, allocations: 125.7 kB / 444.7 MB, free: 2.387 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.598e-05/0.1496, allocations: 3.906 kB / 444.7 MB, free: 2.383 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.17e-05/0.1496, allocations: 7.906 kB / 444.8 MB, free: 2.371 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.1496, allocations: 0 / 444.8 MB, free: 2.371 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.1496, allocations: 0 / 444.8 MB, free: 2.371 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.843e-06/0.1496, allocations: 0 / 444.8 MB, free: 2.371 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001282/0.1497, allocations: 169.6 kB / 444.9 MB, free: 2.156 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.1497, allocations: 0 / 444.9 MB, free: 2.156 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.257e-05/0.1498, allocations: 19.98 kB / 444.9 MB, free: 2.137 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.1498, allocations: 4 kB / 444.9 MB, free: 2.133 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.612e-06/0.1498, allocations: 0 / 444.9 MB, free: 2.133 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.1498, allocations: 0 / 444.9 MB, free: 2.133 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1498, allocations: 0 / 444.9 MB, free: 2.133 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000183/0.15, allocations: 183.7 kB / 445.1 MB, free: 1.938 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.599e-05/0.1501, allocations: 77.16 kB / 445.2 MB, free: 1.844 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.312e-05/0.1501, allocations: 8.047 kB / 445.2 MB, free: 1.836 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.859e-05/0.1501, allocations: 4.031 kB / 445.2 MB, free: 1.832 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.406e-05/0.1502, allocations: 4 kB / 445.2 MB, free: 1.828 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.717e-06/0.1502, allocations: 4 kB / 445.2 MB, free: 1.824 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.309e-05/0.1502, allocations: 91.27 kB / 445.3 MB, free: 1.734 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1502, allocations: 0 / 445.3 MB, free: 1.734 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002127/0.1504, allocations: 11.94 kB / 445.3 MB, free: 1.723 MB / 318.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.0003563/0.1508, allocations: 0.7085 MB / 446 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001301/0.1509, allocations: 47.84 kB / 446.1 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.151, allocations: 0 / 446.1 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.935e-05/0.151, allocations: 12.28 kB / 446.1 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002685/0.1513, allocations: 17.38 kB / 446.1 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001207/0.1525, allocations: 1.365 MB / 447.5 MB, free: 15.45 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000295/0.1528, allocations: 0.6807 MB / 448.1 MB, free: 14.74 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.858e-05/0.1528, allocations: 7.984 kB / 448.2 MB, free: 14.73 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.991e-05/0.1529, allocations: 15.44 kB / 448.2 MB, free: 14.71 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1529, allocations: 0 / 448.2 MB, free: 14.71 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03648/0.1894, allocations: 1.54 MB / 449.7 MB, free: 13.19 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.155/8.345, allocations: 15.8 kB / 449.7 MB, free: 13.18 MB / 334.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_IntegratorForceState_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_IntegratorForceState.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/IntegratorForceState/IntegratorForceState.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegratorForceState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches