Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.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.Hysteresis,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009342/0.0009342, allocations: 99.11 kB / 17 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001212/0.001212, allocations: 191.1 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.443/1.443, allocations: 227.4 MB / 246 MB, free: 10.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2338/0.2338, allocations: 45.91 MB / 344.1 MB, free: 11.98 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002932/0.0002936, allocations: 11.98 kB / 418.2 MB, free: 20.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1393/0.1396, allocations: 63.47 MB / 481.6 MB, free: 5.246 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001714/0.1414, allocations: 1.17 MB / 482.8 MB, free: 4.062 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007508/0.1422, allocations: 431.3 kB / 483.2 MB, free: 3.637 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.081e-05/0.1422, allocations: 0 / 483.2 MB, free: 3.637 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.745e-05/0.1422, allocations: 3.938 kB / 483.2 MB, free: 3.633 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.034e-05/0.1423, allocations: 7.969 kB / 483.2 MB, free: 3.625 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001908/0.1425, allocations: 11.94 kB / 483.2 MB, free: 3.613 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.751e-05/0.1426, allocations: 27.92 kB / 483.3 MB, free: 3.586 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.924e-05/0.1427, allocations: 7.984 kB / 483.3 MB, free: 3.578 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001308/0.1428, allocations: 23.92 kB / 483.3 MB, free: 3.555 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.109e-05/0.1429, allocations: 15.92 kB / 483.3 MB, free: 3.539 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.383e-05/0.1429, allocations: 0 / 483.3 MB, free: 3.539 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.666e-05/0.143, allocations: 15.98 kB / 483.3 MB, free: 3.523 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.012e-05/0.143, allocations: 3.938 kB / 483.3 MB, free: 3.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.889e-05/0.143, allocations: 33.64 kB / 483.4 MB, free: 3.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.744e-05/0.1431, allocations: 15.97 kB / 483.4 MB, free: 3.465 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.1432, allocations: 7.984 kB / 483.4 MB, free: 3.457 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1432, allocations: 0 / 483.4 MB, free: 3.457 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.699e-06/0.1432, allocations: 0 / 483.4 MB, free: 3.457 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004695/0.1436, allocations: 343.5 kB / 483.7 MB, free: 3.074 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.1437, allocations: 12.03 kB / 483.7 MB, free: 3.062 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.383e-05/0.1437, allocations: 34.55 kB / 483.8 MB, free: 3.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000143/0.1439, allocations: 12 kB / 483.8 MB, free: 3.008 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001314/0.144, allocations: 182.8 kB / 484 MB, free: 2.789 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.079e-05/0.1441, allocations: 0 / 484 MB, free: 2.789 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.007e-06/0.1441, allocations: 8 kB / 484 MB, free: 2.781 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001627/0.1442, allocations: 63.39 kB / 484 MB, free: 2.707 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.1443, allocations: 0 / 484 MB, free: 2.707 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.125e-05/0.1443, allocations: 0 / 484 MB, free: 2.707 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.94e-06/0.1443, allocations: 3.938 kB / 484 MB, free: 2.703 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.081e-05/0.1444, allocations: 23.98 kB / 484.1 MB, free: 2.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004017/0.1448, allocations: 264.9 kB / 484.3 MB, free: 2.371 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.007e-05/0.1449, allocations: 34.55 kB / 484.4 MB, free: 2.328 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.781e-05/0.1449, allocations: 20.91 kB / 484.4 MB, free: 2.305 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.215e-05/0.145, allocations: 4 kB / 484.4 MB, free: 2.301 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.684e-05/0.145, allocations: 34.5 kB / 484.4 MB, free: 2.258 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.182e-06/0.145, allocations: 0 / 484.4 MB, free: 2.258 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002428/0.1453, allocations: 69.67 kB / 484.5 MB, free: 2.184 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.924e-05/0.1453, allocations: 77.11 kB / 484.6 MB, free: 2.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.63e-05/0.1454, allocations: 117.9 kB / 484.7 MB, free: 1.965 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.715e-05/0.1455, allocations: 25.7 kB / 484.7 MB, free: 1.934 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.109e-05/0.1455, allocations: 88.05 kB / 484.8 MB, free: 1.844 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.95e-05/0.1455, allocations: 8 kB / 484.8 MB, free: 1.836 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.877e-06/0.1455, allocations: 0 / 484.8 MB, free: 1.836 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.1457, allocations: 318.8 kB / 485.1 MB, free: 1.516 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.644e-05/0.1457, allocations: 12 kB / 485.1 MB, free: 1.504 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.559e-05/0.1458, allocations: 37.64 kB / 485.1 MB, free: 1.461 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.29e-05/0.1458, allocations: 11.94 kB / 485.2 MB, free: 1.449 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.115e-06/0.1459, allocations: 3.984 kB / 485.2 MB, free: 1.445 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001208/0.146, allocations: 61.59 kB / 485.2 MB, free: 1.379 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.146, allocations: 10.5 kB / 485.2 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.95e-06/0.146, allocations: 0 / 485.2 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.149e-05/0.146, allocations: 4.031 kB / 485.2 MB, free: 1.367 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.061e-05/0.1461, allocations: 7.984 kB / 485.2 MB, free: 1.359 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.638e-06/0.1461, allocations: 0 / 485.2 MB, free: 1.359 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.332e-05/0.1462, allocations: 8 kB / 485.3 MB, free: 1.352 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.095e-06/0.1462, allocations: 3.953 kB / 485.3 MB, free: 1.348 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.529e-05/0.1463, allocations: 117.8 kB / 485.4 MB, free: 1.223 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.597e-05/0.1463, allocations: 4 kB / 485.4 MB, free: 1.219 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.253e-05/0.1464, allocations: 7.531 kB / 485.4 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.1464, allocations: 3.938 kB / 485.4 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.1464, allocations: 0 / 485.4 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-06/0.1464, allocations: 0 / 485.4 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001672/0.1465, allocations: 173.6 kB / 485.6 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.1466, allocations: 0 / 485.6 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.62e-05/0.1466, allocations: 4 kB / 485.6 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.04e-06/0.1466, allocations: 3.984 kB / 485.6 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.175e-06/0.1466, allocations: 0 / 485.6 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.1466, allocations: 0 / 485.6 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1466, allocations: 4 kB / 485.6 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001665/0.1468, allocations: 155.4 kB / 485.7 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.596e-05/0.1469, allocations: 81.09 kB / 485.8 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.018e-05/0.1469, allocations: 4 kB / 485.8 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.948e-05/0.147, allocations: 12.03 kB / 485.8 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.076e-05/0.147, allocations: 7.984 kB / 485.8 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.199e-06/0.147, allocations: 3.984 kB / 485.8 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.553e-05/0.1471, allocations: 87.28 kB / 485.9 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1471, allocations: 3.938 kB / 485.9 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002134/0.1473, allocations: 4 kB / 485.9 MB, free: 0.5938 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0004497/0.1478, allocations: 0.6895 MB / 486.6 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001429/0.1479, allocations: 27.98 kB / 486.6 MB, free: 15.85 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.1479, allocations: 0 / 486.6 MB, free: 15.85 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.909e-05/0.148, allocations: 23.95 kB / 486.7 MB, free: 15.83 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000217/0.1482, allocations: 11.88 kB / 486.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004213/0.1486, allocations: 162.3 kB / 486.8 MB, free: 15.62 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002607/0.1489, allocations: 0.6809 MB / 487.5 MB, free: 14.91 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.189e-05/0.1489, allocations: 4.297 kB / 487.5 MB, free: 14.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.953e-05/0.149, allocations: 11.44 kB / 487.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.149, allocations: 0 / 487.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01183/0.1608, allocations: 1.208 MB / 488.7 MB, free: 13.79 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001857/0.1611, allocations: 162 kB / 488.9 MB, free: 13.55 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.808/1.969, allocations: 0 / 488.9 MB, free: 13.55 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis_res.mat does not exist to compare? outputFormat=mat