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.0008881/0.0008881, allocations: 96.98 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008973/0.0008974, allocations: 193.1 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.431/1.431, allocations: 227.4 MB / 246 MB, free: 10.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2232/0.2232, allocations: 45.92 MB / 344.1 MB, free: 11.97 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002782/0.0002784, allocations: 4 kB / 418.2 MB, free: 20.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.1344, allocations: 63.47 MB / 481.6 MB, free: 5.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegratorForceState): time 0.001713/0.1361, allocations: 1.269 MB / 482.9 MB, free: 3.969 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001996/0.1363, allocations: 47.84 kB / 482.9 MB, free: 3.922 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.418e-05/0.1364, allocations: 4 kB / 482.9 MB, free: 3.918 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001087/0.1365, allocations: 7.922 kB / 483 MB, free: 3.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.16e-05/0.1365, allocations: 4 kB / 483 MB, free: 3.906 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001225/0.1367, allocations: 15.92 kB / 483 MB, free: 3.891 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.714e-05/0.1368, allocations: 31.92 kB / 483 MB, free: 3.859 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.412e-05/0.1369, allocations: 11.97 kB / 483 MB, free: 3.848 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.974e-05/0.1369, allocations: 11.92 kB / 483 MB, free: 3.836 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.967e-05/0.137, allocations: 15.88 kB / 483 MB, free: 3.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.302e-05/0.137, allocations: 3.938 kB / 483 MB, free: 3.816 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.13e-05/0.137, allocations: 4 kB / 483.1 MB, free: 3.812 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.036e-05/0.137, allocations: 0 / 483.1 MB, free: 3.812 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.895e-05/0.1371, allocations: 41.64 kB / 483.1 MB, free: 3.766 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.231e-05/0.1371, allocations: 20.23 kB / 483.1 MB, free: 3.746 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.1371, allocations: 0 / 483.1 MB, free: 3.746 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1372, allocations: 0 / 483.1 MB, free: 3.746 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.409e-06/0.1372, allocations: 0 / 483.1 MB, free: 3.746 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.0004067/0.1376, allocations: 343.2 kB / 483.4 MB, free: 3.363 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.1376, allocations: 8.031 kB / 483.5 MB, free: 3.355 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.791e-05/0.1377, allocations: 38.56 kB / 483.5 MB, free: 3.309 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.27e-05/0.1377, allocations: 3.906 kB / 483.5 MB, free: 3.305 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001648/0.1379, allocations: 186.9 kB / 483.7 MB, free: 3.082 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.959e-06/0.1379, allocations: 4 kB / 483.7 MB, free: 3.078 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.158e-05/0.1379, allocations: 4 kB / 483.7 MB, free: 3.074 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001528/0.1381, allocations: 72.19 kB / 483.8 MB, free: 2.988 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.503e-06/0.1381, allocations: 0 / 483.8 MB, free: 2.988 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.294e-06/0.1381, allocations: 4 kB / 483.8 MB, free: 2.984 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.1381, allocations: 0 / 483.8 MB, free: 2.984 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.684e-05/0.1382, allocations: 31.92 kB / 483.8 MB, free: 2.953 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004801/0.1387, allocations: 449.2 kB / 484.2 MB, free: 2.457 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001478/0.1389, allocations: 46.5 kB / 484.3 MB, free: 2.402 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.802e-05/0.1389, allocations: 16.94 kB / 484.3 MB, free: 2.383 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.186e-05/0.1389, allocations: 4 kB / 484.3 MB, free: 2.379 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.999e-05/0.139, allocations: 38.56 kB / 484.3 MB, free: 2.332 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.232e-06/0.139, allocations: 4 kB / 484.3 MB, free: 2.328 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004489/0.1394, allocations: 113.4 kB / 484.5 MB, free: 2.211 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.683e-05/0.1395, allocations: 51.41 kB / 484.5 MB, free: 2.148 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.088e-05/0.1396, allocations: 117.9 kB / 484.6 MB, free: 2.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.377e-05/0.1396, allocations: 29.7 kB / 484.6 MB, free: 1.984 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.562e-05/0.1397, allocations: 95.98 kB / 484.7 MB, free: 1.887 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.381e-05/0.1397, allocations: 12.27 kB / 484.8 MB, free: 1.875 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.286e-06/0.1397, allocations: 0 / 484.8 MB, free: 1.875 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.1398, allocations: 314.8 kB / 485.1 MB, free: 1.559 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.107e-05/0.1399, allocations: 19.98 kB / 485.1 MB, free: 1.539 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.016e-05/0.1399, allocations: 55.28 kB / 485.1 MB, free: 1.473 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.571e-05/0.14, allocations: 19.94 kB / 485.2 MB, free: 1.453 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.22e-07/0.14, allocations: 0 / 485.2 MB, free: 1.453 MB / 350.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000162/0.1402, allocations: 89.52 kB / 485.2 MB, free: 1.359 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.1402, allocations: 8.094 kB / 485.2 MB, free: 1.352 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.1402, allocations: 0 / 485.2 MB, free: 1.352 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.1402, allocations: 7.984 kB / 485.3 MB, free: 1.344 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.874e-05/0.1403, allocations: 8 kB / 485.3 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.877e-06/0.1403, allocations: 7.953 kB / 485.3 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.378e-05/0.1403, allocations: 4 kB / 485.3 MB, free: 1.324 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.614e-06/0.1404, allocations: 4.375 kB / 485.3 MB, free: 1.32 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.282e-05/0.1405, allocations: 117.8 kB / 485.4 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.545e-05/0.1405, allocations: 11.91 kB / 485.4 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.832e-05/0.1405, allocations: 11.89 kB / 485.4 MB, free: 1.172 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.704e-06/0.1405, allocations: 0 / 485.4 MB, free: 1.172 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.1405, allocations: 0 / 485.4 MB, free: 1.172 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.1406, allocations: 3.953 kB / 485.4 MB, free: 1.168 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001772/0.1407, allocations: 173.6 kB / 485.6 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1407, allocations: 0 / 485.6 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.254e-05/0.1408, allocations: 11.98 kB / 485.6 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.1408, allocations: 0 / 485.6 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.446e-06/0.1408, allocations: 0 / 485.6 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.1409, allocations: 8 kB / 485.6 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1409, allocations: 0 / 485.6 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002366/0.1411, allocations: 183.4 kB / 485.8 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.19e-05/0.1412, allocations: 85 kB / 485.9 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.283e-05/0.1412, allocations: 0 / 485.9 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.979e-05/0.1412, allocations: 8.094 kB / 485.9 MB, free: 0.625 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.971e-05/0.1413, allocations: 0 / 485.9 MB, free: 0.625 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.961e-06/0.1413, allocations: 4 kB / 485.9 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.177e-05/0.1413, allocations: 91.27 kB / 486 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1413, allocations: 0 / 486 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002192/0.1416, allocations: 8 kB / 486 MB, free: 0.5234 MB / 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004787/0.1421, allocations: 0.7171 MB / 486.7 MB, free: 15.78 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001295/0.1422, allocations: 35.98 kB / 486.7 MB, free: 15.75 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.1422, allocations: 0 / 486.7 MB, free: 15.75 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.896e-05/0.1423, allocations: 32.11 kB / 486.8 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002748/0.1425, allocations: 8 kB / 486.8 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008468/0.1434, allocations: 0.4981 MB / 487.3 MB, free: 15.15 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003089/0.1437, allocations: 0.6887 MB / 488 MB, free: 14.44 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.152e-05/0.1438, allocations: 192 / 488 MB, free: 14.44 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.903e-05/0.1438, allocations: 19.5 kB / 488 MB, free: 14.42 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1438, allocations: 0 / 488 MB, free: 14.42 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01126/0.1551, allocations: 1.312 MB / 489.3 MB, free: 13.21 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001843/0.1553, allocations: 186.7 kB / 489.5 MB, free: 12.97 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.838/1.993, allocations: 0 / 489.5 MB, free: 12.97 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState_res.mat does not exist to compare? outputFormat=mat