Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.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.Hysteresis,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis",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.0007787/0.0007787, allocations: 97.02 kB / 15.7 MB, free: 468 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001014/0.001014, allocations: 173.7 kB / 16.58 MB, free: 5.68 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.528/1.528, allocations: 205.4 MB / 222.7 MB, free: 5.574 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3746/0.3746, allocations: 43.55 MB / 314.6 MB, free: 8.77 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.0004927/0.0004927, allocations: 16 kB / 384 MB, free: 7.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1299, allocations: 58.85 MB / 442.9 MB, free: 12.98 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001856/0.1318, allocations: 1.163 MB / 444 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007528/0.1326, allocations: 436.3 kB / 444.4 MB, free: 11.37 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.687e-05/0.1326, allocations: 0 / 444.4 MB, free: 11.37 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.385e-05/0.1327, allocations: 4 kB / 444.4 MB, free: 11.37 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.883e-05/0.1327, allocations: 3.938 kB / 444.5 MB, free: 11.36 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001743/0.1329, allocations: 11.97 kB / 444.5 MB, free: 11.35 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 8.421e-05/0.133, allocations: 31.86 kB / 444.5 MB, free: 11.32 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.514e-05/0.1331, allocations: 4 kB / 444.5 MB, free: 11.32 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001016/0.1332, allocations: 19.92 kB / 444.5 MB, free: 11.3 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.893e-05/0.1333, allocations: 15.92 kB / 444.5 MB, free: 11.28 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.652e-05/0.1333, allocations: 3.938 kB / 444.5 MB, free: 11.28 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.556e-05/0.1333, allocations: 4 kB / 444.5 MB, free: 11.27 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.464e-05/0.1334, allocations: 7.984 kB / 444.6 MB, free: 11.27 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.874e-05/0.1334, allocations: 29.7 kB / 444.6 MB, free: 11.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 6.602e-05/0.1335, allocations: 24.23 kB / 444.6 MB, free: 11.21 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.1335, allocations: 0 / 444.6 MB, free: 11.21 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1335, allocations: 0 / 444.6 MB, free: 11.21 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.228e-06/0.1335, allocations: 0 / 444.6 MB, free: 11.21 MB / 382.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.0004678/0.134, allocations: 343.3 kB / 444.9 MB, free: 10.82 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.818e-05/0.134, allocations: 8.031 kB / 444.9 MB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.271e-05/0.1341, allocations: 46.48 kB / 445 MB, free: 10.76 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.024e-05/0.1341, allocations: 7.859 kB / 445 MB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001514/0.1343, allocations: 167 kB / 445.2 MB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.194e-05/0.1343, allocations: 0 / 445.2 MB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.017e-05/0.1343, allocations: 0 / 445.2 MB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001814/0.1345, allocations: 63.39 kB / 445.2 MB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.1345, allocations: 0 / 445.2 MB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.062e-05/0.1345, allocations: 0 / 445.2 MB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.1345, allocations: 7.984 kB / 445.2 MB, free: 10.47 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.555e-05/0.1346, allocations: 27.88 kB / 445.3 MB, free: 10.44 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004268/0.1351, allocations: 269 kB / 445.5 MB, free: 10.13 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.981e-05/0.1352, allocations: 26.58 kB / 445.5 MB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.355e-05/0.1352, allocations: 24.84 kB / 445.6 MB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.344e-05/0.1353, allocations: 4 kB / 445.6 MB, free: 10.06 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.682e-05/0.1353, allocations: 34.56 kB / 445.6 MB, free: 10.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.1353, allocations: 0 / 445.6 MB, free: 10.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002566/0.1356, allocations: 77.47 kB / 445.7 MB, free: 9.938 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.186e-05/0.1357, allocations: 81.11 kB / 445.8 MB, free: 9.84 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.119e-05/0.1357, allocations: 109.8 kB / 445.9 MB, free: 9.723 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.838e-05/0.1358, allocations: 25.7 kB / 445.9 MB, free: 9.691 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.352e-05/0.1358, allocations: 92.27 kB / 446 MB, free: 9.598 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.843e-05/0.1359, allocations: 7.891 kB / 446 MB, free: 9.59 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.787e-06/0.1359, allocations: 0 / 446 MB, free: 9.59 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.136, allocations: 318.8 kB / 446.3 MB, free: 9.27 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.6e-05/0.1361, allocations: 16 kB / 446.3 MB, free: 9.254 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.023e-05/0.1361, allocations: 25.7 kB / 446.3 MB, free: 9.223 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.861e-05/0.1362, allocations: 16.02 kB / 446.4 MB, free: 9.207 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.1362, allocations: 0 / 446.4 MB, free: 9.207 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001353/0.1363, allocations: 69.62 kB / 446.4 MB, free: 9.133 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.1363, allocations: 4 kB / 446.4 MB, free: 9.129 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.1364, allocations: 0 / 446.4 MB, free: 9.129 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.1364, allocations: 7.938 kB / 446.4 MB, free: 9.121 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.276e-05/0.1365, allocations: 7.938 kB / 446.4 MB, free: 9.113 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.1365, allocations: 8 kB / 446.5 MB, free: 9.105 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.838e-05/0.1365, allocations: 11.98 kB / 446.5 MB, free: 9.094 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.732e-06/0.1366, allocations: 0 / 446.5 MB, free: 9.094 MB / 382.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 8.538e-05/0.1366, allocations: 113.8 kB / 446.6 MB, free: 8.973 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.614e-05/0.1367, allocations: 3.906 kB / 446.6 MB, free: 8.969 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.26e-05/0.1367, allocations: 7.531 kB / 446.6 MB, free: 8.965 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.1367, allocations: 4 kB / 446.6 MB, free: 8.961 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/0.1367, allocations: 7.953 kB / 446.6 MB, free: 8.953 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.594e-06/0.1367, allocations: 0 / 446.6 MB, free: 8.953 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001595/0.1369, allocations: 157.7 kB / 446.8 MB, free: 8.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1369, allocations: 0 / 446.8 MB, free: 8.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.066e-05/0.137, allocations: 7.984 kB / 446.8 MB, free: 8.742 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.983e-06/0.137, allocations: 4 kB / 446.8 MB, free: 8.738 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.818e-06/0.137, allocations: 7.938 kB / 446.8 MB, free: 8.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.036e-05/0.137, allocations: 0 / 446.8 MB, free: 8.73 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.137, allocations: 3.938 kB / 446.8 MB, free: 8.727 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001653/0.1372, allocations: 155.5 kB / 446.9 MB, free: 8.559 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.168e-05/0.1372, allocations: 81.02 kB / 447 MB, free: 8.461 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.083e-05/0.1373, allocations: 4 kB / 447 MB, free: 8.457 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.076e-05/0.1373, allocations: 11.98 kB / 447 MB, free: 8.445 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.35e-05/0.1374, allocations: 11.98 kB / 447 MB, free: 8.434 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.157e-06/0.1374, allocations: 4.031 kB / 447 MB, free: 8.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.409e-05/0.1375, allocations: 83.23 kB / 447.1 MB, free: 8.348 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1375, allocations: 0 / 447.1 MB, free: 8.348 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002149/0.1377, allocations: 12 kB / 447.1 MB, free: 8.336 MB / 382.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.0004591/0.1381, allocations: 0.6773 MB / 447.8 MB, free: 7.633 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001509/0.1383, allocations: 35.97 kB / 447.8 MB, free: 7.598 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1383, allocations: 0 / 447.8 MB, free: 7.598 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.724e-05/0.1384, allocations: 16 kB / 447.9 MB, free: 7.582 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002113/0.1386, allocations: 0 / 447.9 MB, free: 7.582 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004215/0.139, allocations: 174.2 kB / 448 MB, free: 7.371 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00025/0.1393, allocations: 0.677 MB / 448.7 MB, free: 6.668 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.282e-05/0.1393, allocations: 8.219 kB / 448.7 MB, free: 6.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.135e-05/0.1394, allocations: 15.42 kB / 448.7 MB, free: 6.648 MB / 382.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1394, allocations: 0 / 448.7 MB, free: 6.648 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01187/0.1513, allocations: 1.2 MB / 449.9 MB, free: 5.477 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002783/0.1516, allocations: 172.9 kB / 450.1 MB, free: 5.23 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.678/1.83, allocations: 0 / 450.1 MB, free: 5.23 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.mat does not exist to compare? outputFormat=mat