Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.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.Electrical.Analog.Examples.HeatingNPN_OrGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate",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.0009543/0.0009545, allocations: 98.62 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.001073/0.001073, allocations: 182.8 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.501/1.501, allocations: 205.4 MB / 224 MB, free: 13.07 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.0004648/0.0004648, allocations: 12 kB / 280.9 MB, free: 3.625 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09815/0.09863, allocations: 47.57 MB / 328.4 MB, free: 3.984 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.003943/0.1026, allocations: 4.087 MB / 332.5 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001828/0.1045, allocations: 1.222 MB / 333.8 MB, free: 14.64 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002147/0.1047, allocations: 11.94 kB / 333.8 MB, free: 14.63 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000183/0.1049, allocations: 83.3 kB / 333.8 MB, free: 14.55 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003187/0.1052, allocations: 210.2 kB / 334 MB, free: 14.34 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004599/0.1057, allocations: 219.7 kB / 334.3 MB, free: 14.12 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007332/0.1064, allocations: 0.939 MB / 335.2 MB, free: 13.18 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002865/0.1067, allocations: 203.5 kB / 335.4 MB, free: 12.97 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003326/0.1071, allocations: 342.7 kB / 335.7 MB, free: 12.63 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004061/0.1075, allocations: 398.3 kB / 336.1 MB, free: 12.24 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.55e-05/0.1076, allocations: 48 kB / 336.2 MB, free: 12.2 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00015/0.1077, allocations: 71.97 kB / 336.2 MB, free: 12.12 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001182/0.1079, allocations: 143.4 kB / 336.4 MB, free: 11.98 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001405/0.108, allocations: 169.3 kB / 336.5 MB, free: 11.81 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005589/0.1086, allocations: 0.7131 MB / 337.3 MB, free: 11.1 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.1086, allocations: 0 / 337.3 MB, free: 11.1 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1086, allocations: 0 / 337.3 MB, free: 11.1 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.367e-06/0.1086, allocations: 0 / 337.3 MB, free: 11.1 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.001913/0.1105, allocations: 1.122 MB / 338.4 MB, free: 9.91 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.1106, allocations: 8.031 kB / 338.4 MB, free: 9.902 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001221/0.1107, allocations: 106.5 kB / 338.5 MB, free: 9.789 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001182/0.1108, allocations: 90.91 kB / 338.6 MB, free: 9.699 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005095/0.1113, allocations: 444.5 kB / 339 MB, free: 9.227 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.657e-05/0.1114, allocations: 53.27 kB / 339.1 MB, free: 9.176 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.683e-05/0.1115, allocations: 60 kB / 339.1 MB, free: 9.117 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001227/0.1127, allocations: 0.6545 MB / 339.8 MB, free: 8.453 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.78e-05/0.1127, allocations: 0 / 339.8 MB, free: 8.453 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.676e-05/0.1128, allocations: 28 kB / 339.8 MB, free: 8.426 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.146e-05/0.1128, allocations: 12 kB / 339.8 MB, free: 8.414 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001491/0.1143, allocations: 0.7312 MB / 340.6 MB, free: 7.684 MB / 286.1 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.003389/0.1177, allocations: 2.374 MB / 342.9 MB, free: 5.148 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001315/0.1191, allocations: 0.6335 MB / 343.6 MB, free: 4.508 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000683/0.1197, allocations: 362 kB / 343.9 MB, free: 4.152 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.664e-05/0.1198, allocations: 12.42 kB / 343.9 MB, free: 4.141 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009033/0.1207, allocations: 461.3 kB / 344.4 MB, free: 3.664 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 2.043e-06/0.1207, allocations: 0 / 344.4 MB, free: 3.664 MB / 286.1 MB Notification: Performance of matching and sorting (n=94): time 0.06318/0.1839, allocations: 16.73 MB / 361.1 MB, free: 2.832 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001024/0.1841, allocations: 141.5 kB / 361.2 MB, free: 2.664 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005914/0.1847, allocations: 490.8 kB / 361.7 MB, free: 2.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001757/0.1849, allocations: 49.7 kB / 361.8 MB, free: 2.125 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002475/0.1851, allocations: 367.9 kB / 362.1 MB, free: 1.758 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002595/0.1854, allocations: 303.5 kB / 362.4 MB, free: 1.457 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.484e-05/0.1855, allocations: 24 kB / 362.5 MB, free: 1.434 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.1856, allocations: 382.8 kB / 362.8 MB, free: 1.051 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002015/0.1877, allocations: 0.7905 MB / 363.6 MB, free: 268 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002044/0.1897, allocations: 1.001 MB / 364.6 MB, free: 15.18 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001955/0.1917, allocations: 0.8808 MB / 365.5 MB, free: 14.29 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.201e-06/0.1917, allocations: 0 / 365.5 MB, free: 14.29 MB / 318.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02135/0.2131, allocations: 5.624 MB / 371.1 MB, free: 8.637 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.011e-05/0.2132, allocations: 59.41 kB / 371.2 MB, free: 8.566 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.651e-05/0.2132, allocations: 8 kB / 371.2 MB, free: 8.559 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03159/0.2448, allocations: 7.316 MB / 378.5 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006838/0.2455, allocations: 175.7 kB / 378.7 MB, free: 1.055 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1949/0.4405, allocations: 3.214 MB / 381.9 MB, free: 51.36 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001628/0.4421, allocations: 224.9 kB / 382.1 MB, free: 51.36 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001141/0.4423, allocations: 44.97 kB / 382.2 MB, free: 51.36 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.V1.signalSource.T_start,V1.signalSource.T_start,$PRE.V1.signalSource.count,V1.signalSource.count,$PRE.V2.signalSource.T_start,V2.signalSource.T_start,$PRE.V2.signalSource.count,V2.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 32} Notification: Performance of prepare postOptimizeDAE: time 0.0003959/0.4427, allocations: 223.4 kB / 382.4 MB, free: 51.25 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001417/0.4428, allocations: 74.78 kB / 382.4 MB, free: 51.25 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02211/0.4649, allocations: 5.471 MB / 387.9 MB, free: 50.84 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.343e-05/0.465, allocations: 9.781 kB / 387.9 MB, free: 50.84 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.193e-05/0.465, allocations: 3.656 kB / 387.9 MB, free: 50.84 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.949e-05/0.4651, allocations: 3.109 kB / 387.9 MB, free: 50.84 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001434/0.4665, allocations: 1.083 MB / 389 MB, free: 50.28 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.4665, allocations: 0 / 389 MB, free: 50.28 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005214/0.4671, allocations: 130.7 kB / 389.1 MB, free: 50.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03085/0.4979, allocations: 7.279 MB / 396.4 MB, free: 48.68 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002218/0.4982, allocations: 31.78 kB / 396.5 MB, free: 48.66 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004702/0.5029, allocations: 3.091 MB / 399.5 MB, free: 46.14 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.5029, allocations: 0 / 399.5 MB, free: 46.14 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02088/0.5238, allocations: 6.411 MB / 406 MB, free: 39.74 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002408/0.5241, allocations: 144.2 kB / 406.1 MB, free: 39.58 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001562/0.5243, allocations: 24 kB / 406.1 MB, free: 39.55 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001195/0.5255, allocations: 207.8 kB / 406.3 MB, free: 39.35 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002333/0.5257, allocations: 96.84 kB / 406.4 MB, free: 39.26 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.019e-05/0.5258, allocations: 43.92 kB / 406.5 MB, free: 39.21 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003181/0.5261, allocations: 330.9 kB / 406.8 MB, free: 38.89 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5261, allocations: 1.781 kB / 406.8 MB, free: 38.89 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006826/0.5268, allocations: 253.5 kB / 407 MB, free: 38.65 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (HeatCapacitor1.T) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,V1.signalSource.T_start,V1.signalSource.count,V2.signalSource.T_start,V2.signalSource.count) * Number of discrete states: 2 (V2.signalSource.count,V1.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 36} Notification: Performance of Backend phase and start with SimCode phase: time 0.02197/0.5488, allocations: 6.994 MB / 414 MB, free: 31.63 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.005939/0.5548, allocations: 2.323 MB / 416.3 MB, free: 29.29 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.613e-06/0.5549, allocations: 0 / 416.3 MB, free: 29.29 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002921/0.5578, allocations: 1.164 MB / 417.5 MB, free: 28.12 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007168/0.5585, allocations: 119.6 kB / 417.6 MB, free: 28.01 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02814/0.5867, allocations: 10.19 MB / 427.8 MB, free: 17.71 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003357/0.5871, allocations: 0.9427 MB / 428.8 MB, free: 16.74 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003538/0.5874, allocations: 58.06 kB / 428.8 MB, free: 16.68 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002742/0.5877, allocations: 259.3 kB / 429.1 MB, free: 16.43 MB / 318.1 MB Notification: Performance of SimCode: time 1.523e-06/0.5877, allocations: 0 / 429.1 MB, free: 16.43 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04343/0.6312, allocations: 26.02 MB / 455.1 MB, free: 6.383 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001791/0.6314, allocations: 212.9 kB / 455.3 MB, free: 6.148 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.858/3.489, allocations: 8 kB / 455.3 MB, free: 6.141 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat does not exist to compare? outputFormat=mat