Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.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) 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(Modelica.ComplexBlocks.Examples.TestConversionBlock,fileNamePrefix="Modelica_3_2_3_Modelica_ComplexBlocks_Examples_TestConversionBlock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.ComplexBlocks.Examples.TestConversionBlock,fileNamePrefix="Modelica_3_2_3_Modelica_ComplexBlocks_Examples_TestConversionBlock",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.001175/0.001175, allocations: 98.58 kB / 16.95 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001521/0.001521, allocations: 183.7 kB / 17.84 MB, free: 6.004 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.771/1.771, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.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.0004885/0.0004888, allocations: 12 kB / 280.9 MB, free: 3.645 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.108, allocations: 47.57 MB / 328.4 MB, free: 3.992 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.002305/0.1103, allocations: 1.202 MB / 329.6 MB, free: 2.773 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001066/0.1114, allocations: 0.5046 MB / 330.1 MB, free: 2.262 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.101e-05/0.1115, allocations: 0 / 330.1 MB, free: 2.262 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000102/0.1116, allocations: 11.94 kB / 330.2 MB, free: 2.25 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 9.466e-05/0.1117, allocations: 7.938 kB / 330.2 MB, free: 2.242 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001766/0.1119, allocations: 27.98 kB / 330.2 MB, free: 2.215 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001126/0.1121, allocations: 55.83 kB / 330.2 MB, free: 2.16 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001169/0.1122, allocations: 11.98 kB / 330.3 MB, free: 2.148 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001396/0.1123, allocations: 23.86 kB / 330.3 MB, free: 2.125 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.239e-05/0.1124, allocations: 23.92 kB / 330.3 MB, free: 2.102 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.84e-05/0.1124, allocations: 0 / 330.3 MB, free: 2.102 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.839e-05/0.1125, allocations: 15.98 kB / 330.3 MB, free: 2.086 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 2.448e-05/0.1125, allocations: 11.92 kB / 330.3 MB, free: 2.074 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 3.481e-05/0.1126, allocations: 33.7 kB / 330.4 MB, free: 2.035 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001141/0.1127, allocations: 43.92 kB / 330.4 MB, free: 1.992 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.1127, allocations: 0 / 330.4 MB, free: 1.992 MB / 270.1 MB Notification: Performance of FrontEnd: time 4.278e-06/0.1127, allocations: 0 / 330.4 MB, free: 1.992 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.1127, allocations: 3.938 kB / 330.4 MB, free: 1.988 MB / 270.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.0006996/0.1134, allocations: 383.3 kB / 330.8 MB, free: 1.566 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.122e-05/0.1135, allocations: 16.03 kB / 330.8 MB, free: 1.551 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.862e-05/0.1136, allocations: 42.53 kB / 330.8 MB, free: 1.5 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.262e-05/0.1136, allocations: 4 kB / 330.8 MB, free: 1.496 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001597/0.1138, allocations: 170.9 kB / 331 MB, free: 1.289 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.561e-05/0.1138, allocations: 4 kB / 331 MB, free: 1.285 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.927e-05/0.1138, allocations: 11.94 kB / 331 MB, free: 1.273 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002896/0.1141, allocations: 97.58 kB / 331.1 MB, free: 1.172 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.1141, allocations: 0 / 331.1 MB, free: 1.172 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.085e-05/0.1142, allocations: 0 / 331.1 MB, free: 1.172 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/0.1142, allocations: 4 kB / 331.1 MB, free: 1.168 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003434/0.1145, allocations: 103.8 kB / 331.2 MB, free: 1.066 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004874/0.115, allocations: 308.7 kB / 331.5 MB, free: 0.7148 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003825/0.1154, allocations: 86.53 kB / 331.6 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001628/0.1156, allocations: 60.94 kB / 331.7 MB, free: 0.5586 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.41e-05/0.1156, allocations: 0 / 331.7 MB, free: 0.5586 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.727e-05/0.1157, allocations: 30.56 kB / 331.7 MB, free: 0.5195 MB / 270.1 MB Notification: Performance of pre-optimization done (n=5): time 9.72e-07/0.1157, allocations: 0 / 331.7 MB, free: 0.5195 MB / 270.1 MB Notification: Performance of matching and sorting (n=5): time 0.0005598/0.1162, allocations: 189.5 kB / 331.9 MB, free: 336 kB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.289e-05/0.1163, allocations: 51.41 kB / 331.9 MB, free: 272 kB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002103/0.1165, allocations: 117.8 kB / 332.1 MB, free: 144 kB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.017e-05/0.1165, allocations: 25.7 kB / 332.1 MB, free: 112 kB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.044e-05/0.1166, allocations: 92.05 kB / 332.2 MB, free: 16 kB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.784e-05/0.1166, allocations: 15.8 kB / 332.2 MB, free: 0 / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.459e-06/0.1167, allocations: 0 / 332.2 MB, free: 0 / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.1168, allocations: 318.8 kB / 332.5 MB, free: 15.68 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001502/0.117, allocations: 47.95 kB / 332.5 MB, free: 15.63 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001364/0.1171, allocations: 43.97 kB / 332.6 MB, free: 15.59 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001441/0.1173, allocations: 51.95 kB / 332.6 MB, free: 15.54 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.1173, allocations: 0 / 332.6 MB, free: 15.54 MB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003367/0.1176, allocations: 137.9 kB / 332.8 MB, free: 15.4 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.17e-05/0.1177, allocations: 4 kB / 332.8 MB, free: 15.39 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.1177, allocations: 8.062 kB / 332.8 MB, free: 15.39 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.1177, allocations: 0 / 332.8 MB, free: 15.39 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001351/0.1178, allocations: 27.97 kB / 332.8 MB, free: 15.36 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.982e-06/0.1178, allocations: 0 / 332.8 MB, free: 15.36 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.379e-05/0.1179, allocations: 27.78 kB / 332.8 MB, free: 15.33 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.592e-06/0.1179, allocations: 4 kB / 332.8 MB, free: 15.33 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.524e-05/0.1181, allocations: 113.8 kB / 333 MB, free: 15.21 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.485e-05/0.1181, allocations: 0 / 333 MB, free: 15.21 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004066/0.1185, allocations: 161.5 kB / 333.1 MB, free: 15.04 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.1185, allocations: 3.938 kB / 333.1 MB, free: 15.04 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.708e-06/0.1185, allocations: 0 / 333.1 MB, free: 15.04 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.1185, allocations: 384 / 333.1 MB, free: 15.04 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002032/0.1187, allocations: 189.5 kB / 333.3 MB, free: 14.8 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.1187, allocations: 0 / 333.3 MB, free: 14.8 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001177/0.1189, allocations: 31.97 kB / 333.3 MB, free: 14.77 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.1189, allocations: 3.938 kB / 333.3 MB, free: 14.77 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.123e-05/0.1189, allocations: 4 kB / 333.3 MB, free: 14.77 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.1189, allocations: 4 kB / 333.3 MB, free: 14.76 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.1189, allocations: 0 / 333.3 MB, free: 14.76 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005442/0.1195, allocations: 239.4 kB / 333.6 MB, free: 14.51 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.599e-05/0.1195, allocations: 85 kB / 333.7 MB, free: 14.41 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.751e-05/0.1195, allocations: 8 kB / 333.7 MB, free: 14.4 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001066/0.1197, allocations: 19.98 kB / 333.7 MB, free: 14.38 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.513e-05/0.1197, allocations: 3.984 kB / 333.7 MB, free: 14.38 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.843e-06/0.1197, allocations: 4 kB / 333.7 MB, free: 14.38 MB / 286.1 MB Notification: Performance of sorting global known variables: time 7.619e-05/0.1198, allocations: 87.27 kB / 333.8 MB, free: 14.29 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1198, allocations: 0 / 333.8 MB, free: 14.29 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002272/0.12, allocations: 12 kB / 333.8 MB, free: 14.28 MB / 286.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 (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.0007882/0.1208, allocations: 0.7827 MB / 334.6 MB, free: 13.47 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004126/0.1213, allocations: 107.9 kB / 334.7 MB, free: 13.36 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.1213, allocations: 0 / 334.7 MB, free: 13.36 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001584/0.1214, allocations: 59.95 kB / 334.7 MB, free: 13.3 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002931/0.1217, allocations: 11.88 kB / 334.7 MB, free: 13.29 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005257/0.1223, allocations: 212.5 kB / 335 MB, free: 13.05 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004698/0.1228, allocations: 0.6926 MB / 335.6 MB, free: 12.33 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.844e-05/0.1228, allocations: 4 kB / 335.7 MB, free: 12.32 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.682e-05/0.1229, allocations: 23.42 kB / 335.7 MB, free: 12.3 MB / 286.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1229, allocations: 0 / 335.7 MB, free: 12.3 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01422/0.1371, allocations: 1.653 MB / 337.3 MB, free: 10.66 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001902/0.1373, allocations: 197.2 kB / 337.5 MB, free: 10.41 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.966/2.103, allocations: 0 / 337.5 MB, free: 10.41 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; mkfifo Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe >> ../files/Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_ComplexBlocks_Examples_TestConversionBlock_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_ComplexBlocks_Examples_TestConversionBlock.fmu > Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock_res.mat does not exist to compare? outputFormat=mat