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.001604/0.001604, allocations: 108.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001806/0.001806, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.508/1.508, allocations: 227.4 MB / 246.3 MB, free: 9.043 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2364/0.2364, allocations: 46.11 MB / 343.6 MB, free: 11.58 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001582/0.001582, allocations: 78.31 kB / 416.9 MB, free: 20.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1365/0.1381, allocations: 62.45 MB / 479.4 MB, free: 5.602 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegratorForceState): time 0.003206/0.1413, allocations: 1.62 MB / 481 MB, free: 3.969 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00031/0.1417, allocations: 71.78 kB / 481.1 MB, free: 3.898 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.335e-05/0.1418, allocations: 3.938 kB / 481.1 MB, free: 3.895 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001365/0.1419, allocations: 4 kB / 481.1 MB, free: 3.891 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.763e-05/0.142, allocations: 3.938 kB / 481.1 MB, free: 3.887 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001524/0.1421, allocations: 19.98 kB / 481.1 MB, free: 3.867 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000103/0.1422, allocations: 31.86 kB / 481.1 MB, free: 3.836 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001149/0.1424, allocations: 8 kB / 481.1 MB, free: 3.828 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.361e-05/0.1424, allocations: 15.91 kB / 481.2 MB, free: 3.812 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.161e-05/0.1425, allocations: 11.94 kB / 481.2 MB, free: 3.801 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.149e-05/0.1425, allocations: 4 kB / 481.2 MB, free: 3.797 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.242e-05/0.1425, allocations: 4 kB / 481.2 MB, free: 3.793 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.279e-05/0.1425, allocations: 11.98 kB / 481.2 MB, free: 3.781 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.453e-05/0.1426, allocations: 11.88 kB / 481.2 MB, free: 3.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.146e-05/0.1427, allocations: 28.17 kB / 481.2 MB, free: 3.742 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.1427, allocations: 0 / 481.2 MB, free: 3.742 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.1427, allocations: 0 / 481.2 MB, free: 3.742 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.857e-06/0.1427, allocations: 3.938 kB / 481.2 MB, free: 3.738 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.0004431/0.1432, allocations: 355.4 kB / 481.6 MB, free: 3.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.086e-05/0.1432, allocations: 12.88 kB / 481.6 MB, free: 3.328 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.511e-05/0.1433, allocations: 38.73 kB / 481.6 MB, free: 3.281 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.302e-05/0.1433, allocations: 8.844 kB / 481.6 MB, free: 3.273 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001931/0.1435, allocations: 180.2 kB / 481.8 MB, free: 3.059 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.202e-05/0.1435, allocations: 4.375 kB / 481.8 MB, free: 3.055 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.904e-05/0.1435, allocations: 384 / 481.8 MB, free: 3.055 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001815/0.1437, allocations: 76.75 kB / 481.9 MB, free: 2.965 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.1438, allocations: 3.938 kB / 481.9 MB, free: 2.961 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.136e-05/0.1438, allocations: 8 kB / 481.9 MB, free: 2.953 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.1438, allocations: 0 / 481.9 MB, free: 2.953 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.498e-05/0.1439, allocations: 23.98 kB / 481.9 MB, free: 2.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005122/0.1444, allocations: 437.2 kB / 482.4 MB, free: 2.445 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001627/0.1446, allocations: 46.56 kB / 482.4 MB, free: 2.391 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.208e-05/0.1446, allocations: 20.88 kB / 482.4 MB, free: 2.367 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.507e-05/0.1447, allocations: 0 / 482.4 MB, free: 2.367 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.345e-05/0.1447, allocations: 38.5 kB / 482.5 MB, free: 2.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 8.81e-07/0.1447, allocations: 0 / 482.5 MB, free: 2.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004813/0.1452, allocations: 105.8 kB / 482.6 MB, free: 2.211 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.788e-05/0.1452, allocations: 51.41 kB / 482.6 MB, free: 2.148 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001045/0.1453, allocations: 121.8 kB / 482.7 MB, free: 2.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.634e-05/0.1454, allocations: 25.7 kB / 482.8 MB, free: 1.988 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.405e-05/0.1454, allocations: 95.97 kB / 482.9 MB, free: 1.891 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.891e-05/0.1455, allocations: 19.8 kB / 482.9 MB, free: 1.871 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.209e-05/0.1455, allocations: 17.72 kB / 482.9 MB, free: 1.848 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.1457, allocations: 326.8 kB / 483.2 MB, free: 1.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.28e-05/0.1457, allocations: 12 kB / 483.2 MB, free: 1.508 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.027e-05/0.1458, allocations: 35.42 kB / 483.3 MB, free: 1.461 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001201/0.1459, allocations: 67.34 kB / 483.3 MB, free: 1.383 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.146, allocations: 4 kB / 483.3 MB, free: 1.379 MB / 350.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001747/0.1461, allocations: 81.52 kB / 483.4 MB, free: 1.293 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.294e-05/0.1462, allocations: 11.98 kB / 483.4 MB, free: 1.281 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.525e-06/0.1462, allocations: 4 kB / 483.4 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.1462, allocations: 0 / 483.4 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.757e-05/0.1463, allocations: 19.88 kB / 483.4 MB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.1463, allocations: 0 / 483.4 MB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.1e-05/0.1463, allocations: 8.094 kB / 483.5 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.556e-05/0.1464, allocations: 7.984 kB / 483.5 MB, free: 1.242 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 8.725e-05/0.1465, allocations: 113.8 kB / 483.6 MB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.75e-05/0.1465, allocations: 4 kB / 483.6 MB, free: 1.117 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.777e-05/0.1465, allocations: 7.906 kB / 483.6 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.215e-06/0.1465, allocations: 0 / 483.6 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.1465, allocations: 4 kB / 483.6 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.1466, allocations: 0 / 483.6 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001762/0.1467, allocations: 169.6 kB / 483.8 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.1467, allocations: 4 kB / 483.8 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.049e-05/0.1468, allocations: 12.36 kB / 483.8 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.1468, allocations: 0 / 483.8 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.609e-05/0.1469, allocations: 4 kB / 483.8 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.1469, allocations: 160 / 483.8 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.1469, allocations: 7.875 kB / 483.8 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000242/0.1471, allocations: 179.4 kB / 484 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.399e-05/0.1472, allocations: 85.17 kB / 484 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.488e-05/0.1472, allocations: 0 / 484 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.407e-05/0.1473, allocations: 4.031 kB / 484 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.656e-05/0.1473, allocations: 0 / 484 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.801e-06/0.1473, allocations: 3.984 kB / 484 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.519e-05/0.1474, allocations: 87.28 kB / 484.1 MB, free: 484 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1474, allocations: 0 / 484.1 MB, free: 484 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002257/0.1476, allocations: 11.94 kB / 484.1 MB, free: 472 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.0005195/0.1481, allocations: 0.7046 MB / 484.8 MB, free: 15.73 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000151/0.1483, allocations: 43.91 kB / 484.9 MB, free: 15.69 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.1483, allocations: 0 / 484.9 MB, free: 15.69 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.078e-05/0.1484, allocations: 19.98 kB / 484.9 MB, free: 15.67 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003504/0.1487, allocations: 8.25 kB / 484.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001371/0.1501, allocations: 1.384 MB / 486.3 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002764/0.1504, allocations: 0.6848 MB / 487 MB, free: 13.47 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.823e-05/0.1504, allocations: 4 kB / 487 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.575e-05/0.1505, allocations: 19.42 kB / 487 MB, free: 13.45 MB / 366.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1505, allocations: 0 / 487 MB, free: 13.45 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01144/0.1619, allocations: 1.34 MB / 488.3 MB, free: 12.17 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000188/0.1622, allocations: 195.9 kB / 488.5 MB, free: 11.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.759/1.922, allocations: 0 / 488.5 MB, free: 11.91 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