Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStrings.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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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.Utilities.TestStrings,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestStrings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStrings,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestStrings",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001955/0.001955, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002312/0.002312, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.528/1.528, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2418/0.2418, allocations: 46.11 MB / 344.2 MB, free: 11.58 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002287/0.002288, allocations: 76.53 kB / 417.7 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1214, allocations: 62.45 MB / 480.2 MB, free: 5.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.002175/0.1236, allocations: 483.7 kB / 480.7 MB, free: 4.684 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002617/0.1262, allocations: 1.295 MB / 482 MB, free: 3.383 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.615e-05/0.1263, allocations: 0 / 482 MB, free: 3.383 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.668e-05/0.1263, allocations: 0 / 482 MB, free: 3.383 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.541e-06/0.1263, allocations: 4 kB / 482 MB, free: 3.379 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Utilities.mo:4:3-219:14:writable] Warning: Pure function 'ModelicaTest.Utilities.Strings' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001841/0.1282, allocations: 0.5803 MB / 482.6 MB, free: 2.797 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.378e-05/0.1282, allocations: 0 / 482.6 MB, free: 2.797 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.348e-05/0.1283, allocations: 4 kB / 482.6 MB, free: 2.793 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.85e-05/0.1283, allocations: 0 / 482.6 MB, free: 2.793 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.118e-05/0.1283, allocations: 0 / 482.6 MB, free: 2.793 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.092e-06/0.1283, allocations: 0 / 482.6 MB, free: 2.793 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01774/0.1461, allocations: 2.496 MB / 485.1 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.356e-05/0.1461, allocations: 0 / 485.1 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.398e-05/0.1461, allocations: 0 / 485.1 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004666/0.1466, allocations: 167.8 kB / 485.2 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.1466, allocations: 0 / 485.2 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1467, allocations: 3.938 kB / 485.2 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.1467, allocations: 0 / 485.2 MB, free: 0.6484 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004448/0.1472, allocations: 385.3 kB / 485.6 MB, free: 224 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/0.1473, allocations: 8.031 kB / 485.6 MB, free: 216 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.135e-05/0.1473, allocations: 30.75 kB / 485.6 MB, free: 176 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.934e-05/0.1473, allocations: 0.9375 kB / 485.6 MB, free: 176 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001297/0.1475, allocations: 168.3 kB / 485.8 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.322e-05/0.1475, allocations: 4.375 kB / 485.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.572e-06/0.1475, allocations: 4.375 kB / 485.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.951e-05/0.1476, allocations: 29.64 kB / 485.8 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.013e-06/0.1476, allocations: 0 / 485.8 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.532e-06/0.1476, allocations: 0 / 485.8 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.459e-06/0.1476, allocations: 4 kB / 485.8 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.066e-05/0.1477, allocations: 7.984 kB / 485.8 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001473/0.1478, allocations: 141.7 kB / 486 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.737e-05/0.1479, allocations: 26.55 kB / 486 MB, free: 15.69 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.529e-05/0.1479, allocations: 4.859 kB / 486 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.117e-06/0.1479, allocations: 3.938 kB / 486 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.301e-05/0.148, allocations: 60.27 kB / 486.1 MB, free: 15.61 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.148, allocations: 3.938 kB / 486.1 MB, free: 15.6 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001791/0.1482, allocations: 63.45 kB / 486.1 MB, free: 15.53 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.771e-05/0.1482, allocations: 81.11 kB / 486.2 MB, free: 15.43 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.335e-05/0.1483, allocations: 93.98 kB / 486.3 MB, free: 15.33 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.474e-05/0.1483, allocations: 25.7 kB / 486.3 MB, free: 15.3 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.155e-05/0.1483, allocations: 80.14 kB / 486.4 MB, free: 15.21 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.278e-05/0.1484, allocations: 0 / 486.4 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.261e-05/0.1484, allocations: 21.66 kB / 486.4 MB, free: 15.19 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.1485, allocations: 314.8 kB / 486.7 MB, free: 14.87 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.829e-06/0.1486, allocations: 0 / 486.7 MB, free: 14.87 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.233e-06/0.1486, allocations: 3.938 kB / 486.8 MB, free: 14.87 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.367e-05/0.1486, allocations: 64.33 kB / 486.8 MB, free: 14.79 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.1487, allocations: 0 / 486.8 MB, free: 14.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.276e-05/0.1487, allocations: 67.34 kB / 486.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.899e-05/0.1488, allocations: 33.69 kB / 486.9 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.1488, allocations: 0 / 486.9 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.1488, allocations: 4 kB / 486.9 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.42e-07/0.1488, allocations: 0 / 486.9 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.695e-06/0.1488, allocations: 0 / 486.9 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.508e-05/0.1489, allocations: 3.938 kB / 486.9 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.262e-06/0.1489, allocations: 0 / 486.9 MB, free: 14.66 MB / 366.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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 9.777e-05/0.149, allocations: 139.6 kB / 487.1 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.006e-05/0.149, allocations: 3.938 kB / 487.1 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.538e-06/0.149, allocations: 3.125 kB / 487.1 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.149, allocations: 0 / 487.1 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.518e-06/0.149, allocations: 3.984 kB / 487.1 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.149, allocations: 0 / 487.1 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001081/0.1491, allocations: 145.7 kB / 487.2 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.1491, allocations: 0 / 487.2 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.867e-06/0.1492, allocations: 7.938 kB / 487.2 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.1492, allocations: 4 kB / 487.2 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.592e-06/0.1492, allocations: 0 / 487.2 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.694e-06/0.1492, allocations: 0 / 487.2 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1492, allocations: 0 / 487.2 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001062/0.1493, allocations: 94.83 kB / 487.3 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.812e-05/0.1494, allocations: 81.05 kB / 487.4 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.548e-05/0.1494, allocations: 7.938 kB / 487.4 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.103e-05/0.1494, allocations: 3.984 kB / 487.4 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.206e-05/0.1494, allocations: 7.969 kB / 487.4 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.886e-06/0.1494, allocations: 0 / 487.4 MB, free: 14.07 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.288e-05/0.1495, allocations: 75.28 kB / 487.5 MB, free: 13.99 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1495, allocations: 0 / 487.5 MB, free: 13.99 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000316/0.1498, allocations: 68 kB / 487.6 MB, free: 13.93 MB / 366.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 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.001266/0.151, allocations: 0.9328 MB / 488.5 MB, free: 13.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001067/0.1512, allocations: 55.41 kB / 488.5 MB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.1512, allocations: 0 / 488.5 MB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.715e-05/0.1512, allocations: 59.34 kB / 488.6 MB, free: 12.88 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001347/0.1514, allocations: 8.125 kB / 488.6 MB, free: 12.88 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003547/0.1517, allocations: 142.5 kB / 488.7 MB, free: 12.7 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002924/0.152, allocations: 0.6729 MB / 489.4 MB, free: 12 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.583e-06/0.152, allocations: 0 / 489.4 MB, free: 12 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.833e-05/0.1521, allocations: 11.44 kB / 489.4 MB, free: 11.99 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1521, allocations: 0 / 489.4 MB, free: 11.99 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02717/0.1792, allocations: 3.09 MB / 492.5 MB, free: 8.961 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.998/8.178, allocations: 7.516 kB / 492.5 MB, free: 8.957 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStrings.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStrings.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStrings.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStrings.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStrings_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestStrings_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestStrings.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStrings.pipe 2>&1)