Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002487/0.002487, allocations: 187.6 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.453/2.453, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001186/0.001186, allocations: 90.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007994/0.0007995, allocations: 8 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1073, allocations: 47.57 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.003772/0.1111, allocations: 1.987 MB / 376.6 MB, free: 13.34 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001811/0.113, allocations: 0.6561 MB / 377.3 MB, free: 12.68 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002235/0.1133, allocations: 4 kB / 377.3 MB, free: 12.68 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 9.508e-05/0.1134, allocations: 27.77 kB / 377.3 MB, free: 12.65 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002625/0.1136, allocations: 75.77 kB / 377.4 MB, free: 12.57 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003638/0.114, allocations: 59.86 kB / 377.4 MB, free: 12.52 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004125/0.1145, allocations: 183.6 kB / 377.6 MB, free: 12.34 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002338/0.1147, allocations: 68.78 kB / 377.7 MB, free: 12.27 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002663/0.115, allocations: 91.69 kB / 377.8 MB, free: 12.18 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002132/0.1152, allocations: 99.55 kB / 377.9 MB, free: 12.08 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.066e-05/0.1153, allocations: 12 kB / 377.9 MB, free: 12.07 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001253/0.1154, allocations: 27.97 kB / 377.9 MB, free: 12.04 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.928e-05/0.1155, allocations: 31.84 kB / 377.9 MB, free: 12.01 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.637e-05/0.1156, allocations: 73.58 kB / 378 MB, free: 11.93 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003521/0.1159, allocations: 195.7 kB / 378.2 MB, free: 11.74 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.906e-06/0.1159, allocations: 0 / 378.2 MB, free: 11.74 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.067e-06/0.116, allocations: 4 kB / 378.2 MB, free: 11.74 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.116, allocations: 3.938 kB / 378.2 MB, free: 11.73 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001135/0.1171, allocations: 498.9 kB / 378.7 MB, free: 11.2 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.564e-05/0.1172, allocations: 12.03 kB / 378.7 MB, free: 11.18 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.518e-05/0.1173, allocations: 50.55 kB / 378.8 MB, free: 11.12 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.03e-05/0.1174, allocations: 23.72 kB / 378.8 MB, free: 11.1 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003622/0.1178, allocations: 239.3 kB / 379 MB, free: 10.83 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.841e-05/0.1178, allocations: 20.39 kB / 379 MB, free: 10.81 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.623e-05/0.1179, allocations: 20 kB / 379.1 MB, free: 10.79 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005731/0.1185, allocations: 195.2 kB / 379.2 MB, free: 10.59 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.789e-05/0.1185, allocations: 4 kB / 379.2 MB, free: 10.59 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.467e-05/0.1185, allocations: 4 kB / 379.3 MB, free: 10.58 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/0.1186, allocations: 4 kB / 379.3 MB, free: 10.58 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005275/0.1191, allocations: 153.7 kB / 379.4 MB, free: 10.43 MB / 282.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002216/0.1213, allocations: 0.9336 MB / 380.3 MB, free: 9.391 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000499/0.1219, allocations: 158.5 kB / 380.5 MB, free: 9.227 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.584e-05/0.1219, allocations: 7.984 kB / 380.5 MB, free: 9.219 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.988e-05/0.122, allocations: 38.64 kB / 380.5 MB, free: 9.172 MB / 282.7 MB Notification: Performance of pre-optimization done (n=17): time 2.895e-06/0.122, allocations: 4 kB / 380.5 MB, free: 9.168 MB / 282.7 MB Notification: Performance of matching and sorting (n=17): time 0.002135/0.1241, allocations: 423.4 kB / 381 MB, free: 8.727 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.215e-05/0.1242, allocations: 55.41 kB / 381 MB, free: 8.66 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002397/0.1245, allocations: 163.6 kB / 381.2 MB, free: 8.492 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.465e-05/0.1245, allocations: 33.64 kB / 381.2 MB, free: 8.453 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001928/0.1247, allocations: 210.6 kB / 381.4 MB, free: 8.246 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.008e-05/0.1248, allocations: 59.11 kB / 381.5 MB, free: 8.188 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.502e-05/0.1248, allocations: 4 kB / 381.5 MB, free: 8.184 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.125, allocations: 322.8 kB / 381.8 MB, free: 7.859 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002143/0.1252, allocations: 48.36 kB / 381.8 MB, free: 7.812 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002316/0.1255, allocations: 70.44 kB / 381.9 MB, free: 7.738 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002333/0.1257, allocations: 63.94 kB / 382 MB, free: 7.676 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.215e-06/0.1257, allocations: 4 kB / 382 MB, free: 7.672 MB / 282.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0007898/0.1265, allocations: 234.1 kB / 382.2 MB, free: 7.434 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.324e-05/0.1266, allocations: 8 kB / 382.2 MB, free: 7.426 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.1266, allocations: 0 / 382.2 MB, free: 7.426 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002389/0.129, allocations: 220.6 kB / 382.4 MB, free: 7.207 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000288/0.1293, allocations: 31.97 kB / 382.5 MB, free: 7.176 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000768/0.1301, allocations: 0.6186 MB / 383.1 MB, free: 6.527 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002381/0.1304, allocations: 19.88 kB / 383.1 MB, free: 6.508 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.277e-05/0.1304, allocations: 4 kB / 383.1 MB, free: 6.504 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (14): * Single equations (assignments): 13 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001974/0.1306, allocations: 129.8 kB / 383.2 MB, free: 6.367 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.811e-05/0.1307, allocations: 15.81 kB / 383.2 MB, free: 6.352 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007872/0.1315, allocations: 232.3 kB / 383.5 MB, free: 6.113 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.328e-06/0.1315, allocations: 4 kB / 383.5 MB, free: 6.109 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/0.1316, allocations: 3.953 kB / 383.5 MB, free: 6.105 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.325e-06/0.1316, allocations: 3.984 kB / 383.5 MB, free: 6.102 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005135/0.1321, allocations: 289.4 kB / 383.8 MB, free: 5.77 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.1321, allocations: 0 / 383.8 MB, free: 5.77 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003025/0.1324, allocations: 27.98 kB / 383.8 MB, free: 5.742 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002054/0.1345, allocations: 216.5 kB / 384 MB, free: 5.527 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.246e-05/0.1346, allocations: 8 kB / 384 MB, free: 5.52 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007315/0.1353, allocations: 0.6148 MB / 384.6 MB, free: 4.879 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.1354, allocations: 8.188 kB / 384.6 MB, free: 4.871 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000981/0.1363, allocations: 388.3 kB / 385 MB, free: 4.473 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.932e-05/0.1365, allocations: 100.8 kB / 385.1 MB, free: 4.355 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.542e-05/0.1365, allocations: 7.984 kB / 385.1 MB, free: 4.348 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003053/0.1368, allocations: 16.06 kB / 385.1 MB, free: 4.332 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.225e-05/0.1369, allocations: 7.984 kB / 385.1 MB, free: 4.324 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.918e-05/0.137, allocations: 4 kB / 385.1 MB, free: 4.32 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001622/0.1371, allocations: 135.5 kB / 385.3 MB, free: 4.188 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.1371, allocations: 0 / 385.3 MB, free: 4.188 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004496/0.1376, allocations: 55.84 kB / 385.3 MB, free: 4.133 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * 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 (10): * Single equations (assignments): 9 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.001434/0.139, allocations: 0.9325 MB / 386.3 MB, free: 3.172 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006663/0.1398, allocations: 159.9 kB / 386.4 MB, free: 3.016 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.1398, allocations: 3.938 kB / 386.4 MB, free: 3.012 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003194/0.1401, allocations: 87.91 kB / 386.5 MB, free: 2.926 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004035/0.1405, allocations: 23.98 kB / 386.5 MB, free: 2.902 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003631/0.1442, allocations: 1.524 MB / 388.1 MB, free: 1.316 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004552/0.1447, allocations: 0.7402 MB / 388.8 MB, free: 0.5508 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001533/0.1449, allocations: 59.42 kB / 388.9 MB, free: 0.4961 MB / 282.7 MB Notification: Performance of SimCode: time 1.744e-06/0.1449, allocations: 0 / 388.9 MB, free: 0.4961 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.767/2.912, allocations: 3.914 MB / 392.8 MB, free: 19.9 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingRectifier_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingRectifier.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat does not exist to compare? outputFormat=mat