Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.TestConversionBlock.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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(Modelica.ComplexBlocks.Examples.TestConversionBlock,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_ComplexBlocks_Examples_TestConversionBlock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.ComplexBlocks.Examples.TestConversionBlock,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_ComplexBlocks_Examples_TestConversionBlock",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001646/0.001646, 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.001932/0.001932, 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 4.1.0-beta.om/package.mo): time 1.569/1.569, allocations: 227.7 MB / 247 MB, free: 10.35 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex 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. Warning: Requested package ModelicaServices 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.001968/0.001968, allocations: 63.67 kB / 307.3 MB, free: 408 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1272, allocations: 50.54 MB / 357.9 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.00351/0.1308, allocations: 1.514 MB / 359.4 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001187/0.132, allocations: 0.5314 MB / 359.9 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.121e-05/0.1321, allocations: 3.938 kB / 359.9 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001405/0.1323, allocations: 11.94 kB / 359.9 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.798e-05/0.1324, allocations: 15.84 kB / 359.9 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002171/0.1326, allocations: 39.91 kB / 360 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001549/0.1328, allocations: 51.86 kB / 360 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001619/0.1329, allocations: 27.95 kB / 360.1 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002084/0.1332, allocations: 39.84 kB / 360.1 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.341e-05/0.1332, allocations: 31.84 kB / 360.1 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.812e-05/0.1333, allocations: 4 kB / 360.1 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.279e-05/0.1333, allocations: 16 kB / 360.1 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.963e-05/0.1334, allocations: 15.98 kB / 360.2 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.359e-05/0.1334, allocations: 23.86 kB / 360.2 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001861/0.1336, allocations: 63.73 kB / 360.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.1336, allocations: 3.984 kB / 360.2 MB, free: 11.44 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.1336, allocations: 4 kB / 360.3 MB, free: 11.44 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.164e-06/0.1337, allocations: 0 / 360.3 MB, free: 11.44 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0007909/0.1345, allocations: 387.6 kB / 360.6 MB, free: 11.01 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.705e-05/0.1345, allocations: 12.03 kB / 360.6 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.315e-05/0.1346, allocations: 30.75 kB / 360.7 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.738e-05/0.1346, allocations: 8.844 kB / 360.7 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001893/0.1348, allocations: 176.2 kB / 360.9 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.017e-05/0.1349, allocations: 8.359 kB / 360.9 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.204e-05/0.1349, allocations: 4.375 kB / 360.9 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002979/0.1352, allocations: 97.64 kB / 361 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.1352, allocations: 0 / 361 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.042e-05/0.1352, allocations: 0 / 361 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.1352, allocations: 4 kB / 361 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003225/0.1356, allocations: 71.92 kB / 361 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005508/0.1361, allocations: 308.8 kB / 361.3 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00028/0.1364, allocations: 74.52 kB / 361.4 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001731/0.1366, allocations: 44.95 kB / 361.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.842e-05/0.1366, allocations: 7.938 kB / 361.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.16e-05/0.1367, allocations: 34.59 kB / 361.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=5): time 1.343e-06/0.1367, allocations: 0 / 361.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.000667/0.1374, allocations: 153.5 kB / 361.6 MB, free: 9.867 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.541e-05/0.1374, allocations: 55.41 kB / 361.7 MB, free: 9.801 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.892e-05/0.1375, allocations: 109.8 kB / 361.8 MB, free: 9.684 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.165e-05/0.1376, allocations: 25.7 kB / 361.8 MB, free: 9.652 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.811e-05/0.1376, allocations: 99.97 kB / 361.9 MB, free: 9.551 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.73e-05/0.1377, allocations: 11.81 kB / 361.9 MB, free: 9.539 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.418e-05/0.1377, allocations: 13.72 kB / 362 MB, free: 9.52 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.1379, allocations: 326.8 kB / 362.3 MB, free: 9.191 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001646/0.1381, allocations: 39.97 kB / 362.3 MB, free: 9.152 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00016/0.1382, allocations: 35.95 kB / 362.3 MB, free: 9.117 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003258/0.1386, allocations: 89.09 kB / 362.4 MB, free: 9.027 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.1386, allocations: 0 / 362.4 MB, free: 9.027 MB / 302.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000367/0.139, allocations: 109.6 kB / 362.5 MB, free: 8.914 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.218e-05/0.139, allocations: 4 kB / 362.5 MB, free: 8.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.455e-06/0.139, allocations: 0 / 362.5 MB, free: 8.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.37e-05/0.1391, allocations: 3.984 kB / 362.6 MB, free: 8.906 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000171/0.1392, allocations: 19.97 kB / 362.6 MB, free: 8.887 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.075e-05/0.1393, allocations: 4 kB / 362.6 MB, free: 8.883 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001034/0.1394, allocations: 24.2 kB / 362.6 MB, free: 8.859 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.372e-05/0.1394, allocations: 7.938 kB / 362.6 MB, free: 8.852 MB / 302.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 0.0001244/0.1395, allocations: 113.8 kB / 362.7 MB, free: 8.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.661e-05/0.1396, allocations: 4 kB / 362.7 MB, free: 8.727 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004845/0.1401, allocations: 141.5 kB / 362.9 MB, free: 8.578 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.1401, allocations: 0 / 362.9 MB, free: 8.578 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.1401, allocations: 0 / 362.9 MB, free: 8.578 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.1401, allocations: 0 / 362.9 MB, free: 8.578 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002808/0.1404, allocations: 185.6 kB / 363 MB, free: 8.348 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1404, allocations: 0 / 363 MB, free: 8.348 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001201/0.1405, allocations: 23.97 kB / 363.1 MB, free: 8.324 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/0.1405, allocations: 0 / 363.1 MB, free: 8.324 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.294e-05/0.1405, allocations: 0 / 363.1 MB, free: 8.324 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.1406, allocations: 3.938 kB / 363.1 MB, free: 8.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.1406, allocations: 7.938 kB / 363.1 MB, free: 8.312 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004915/0.1411, allocations: 227.4 kB / 363.3 MB, free: 8.074 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.717e-05/0.1411, allocations: 81.02 kB / 363.4 MB, free: 7.977 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.741e-05/0.1412, allocations: 4 kB / 363.4 MB, free: 7.973 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001162/0.1413, allocations: 11.98 kB / 363.4 MB, free: 7.961 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.89e-05/0.1413, allocations: 11.98 kB / 363.4 MB, free: 7.949 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.2e-06/0.1414, allocations: 0 / 363.4 MB, free: 7.949 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.096e-05/0.1414, allocations: 95.2 kB / 363.5 MB, free: 7.855 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1414, allocations: 0 / 363.5 MB, free: 7.855 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002453/0.1417, allocations: 12 kB / 363.5 MB, free: 7.844 MB / 302.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.000862/0.1426, allocations: 0.7552 MB / 364.3 MB, free: 7.062 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004263/0.143, allocations: 95.92 kB / 364.4 MB, free: 6.969 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.143, allocations: 0 / 364.4 MB, free: 6.969 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001737/0.1432, allocations: 47.95 kB / 364.4 MB, free: 6.922 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003458/0.1435, allocations: 8.125 kB / 364.4 MB, free: 6.914 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005918/0.1441, allocations: 203.5 kB / 364.6 MB, free: 6.676 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003775/0.1445, allocations: 0.6885 MB / 365.3 MB, free: 5.961 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.569e-05/0.1446, allocations: 0 / 365.3 MB, free: 5.961 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.718e-05/0.1446, allocations: 19.72 kB / 365.3 MB, free: 5.941 MB / 302.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1447, allocations: 0 / 365.3 MB, free: 5.941 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02713/0.1718, allocations: 1.988 MB / 367.3 MB, free: 4.043 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.103/8.275, allocations: 11.33 kB / 367.3 MB, free: 4.035 MB / 302.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.TestConversionBlock.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.TestConversionBlock_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_ComplexBlocks_Examples_TestConversionBlock_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_ComplexBlocks_Examples_TestConversionBlock.fmu > Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe 2>&1)