Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.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.HeatingNPN_OrGate,fileNamePrefix="Modelica_3_2_3_cpp_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_cpp_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate",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.001558/0.001563, allocations: 186.7 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.159/2.159, allocations: 205.4 MB / 222.5 MB, free: 13.76 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.00117/0.00117, allocations: 94.88 kB / 270.9 MB, free: 13.28 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003984/0.0003985, allocations: 8 kB / 327.1 MB, free: 14.98 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1037, allocations: 47.57 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.006628/0.1104, allocations: 3.784 MB / 378.4 MB, free: 11.53 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003571/0.1141, allocations: 1.285 MB / 379.7 MB, free: 10.23 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006702/0.1148, allocations: 11.94 kB / 379.7 MB, free: 10.22 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002653/0.1151, allocations: 79.36 kB / 379.8 MB, free: 10.14 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009968/0.1161, allocations: 267.2 kB / 380.1 MB, free: 9.883 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001035/0.1172, allocations: 219.6 kB / 380.3 MB, free: 9.668 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001726/0.1189, allocations: 0.6643 MB / 380.9 MB, free: 9.004 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005485/0.1195, allocations: 199.5 kB / 381.1 MB, free: 8.793 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007616/0.1203, allocations: 346.8 kB / 381.5 MB, free: 8.453 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000832/0.1211, allocations: 406.3 kB / 381.9 MB, free: 8.055 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002117/0.1214, allocations: 44 kB / 381.9 MB, free: 8.012 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000322/0.1217, allocations: 59.98 kB / 382 MB, free: 7.953 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001998/0.1219, allocations: 147.4 kB / 382.1 MB, free: 7.809 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003131/0.1223, allocations: 165.3 kB / 382.3 MB, free: 7.641 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001267/0.1235, allocations: 0.7092 MB / 383 MB, free: 6.93 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1236, allocations: 0 / 383 MB, free: 6.93 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.345e-06/0.1236, allocations: 4 kB / 383 MB, free: 6.926 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.165e-05/0.1236, allocations: 0 / 383 MB, free: 6.926 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: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.003879/0.1275, allocations: 1.126 MB / 384.1 MB, free: 5.734 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/0.1276, allocations: 8.031 kB / 384.1 MB, free: 5.727 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000298/0.1279, allocations: 106.5 kB / 384.2 MB, free: 5.613 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002497/0.1281, allocations: 86.97 kB / 384.3 MB, free: 5.527 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009529/0.1291, allocations: 440.6 kB / 384.7 MB, free: 5.059 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.081e-05/0.1292, allocations: 49.27 kB / 384.8 MB, free: 5.012 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001753/0.1294, allocations: 64 kB / 384.8 MB, free: 4.949 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002507/0.1319, allocations: 0.6506 MB / 385.5 MB, free: 4.289 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.058e-05/0.132, allocations: 3.984 kB / 385.5 MB, free: 4.285 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001093/0.1321, allocations: 28 kB / 385.5 MB, free: 4.258 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.939e-05/0.1321, allocations: 12 kB / 385.5 MB, free: 4.246 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003352/0.1355, allocations: 0.7312 MB / 386.3 MB, free: 3.516 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.006936/0.1425, allocations: 2.367 MB / 388.6 MB, free: 0.9883 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002712/0.1452, allocations: 0.6413 MB / 389.3 MB, free: 348 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.932e-05/0.1453, allocations: 8.438 kB / 389.3 MB, free: 340 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.2704/0.4157, allocations: 454 kB / 389.7 MB, free: 20.44 MB / 282.7 MB Notification: Performance of pre-optimization done (n=54): time 4.038e-06/0.4158, allocations: 1.188 kB / 389.7 MB, free: 20.44 MB / 282.7 MB Notification: Performance of matching and sorting (n=94): time 0.135/0.5508, allocations: 16.7 MB / 406.4 MB, free: 15.88 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.355e-05/0.551, allocations: 149.1 kB / 406.6 MB, free: 15.7 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007122/0.5517, allocations: 490.8 kB / 407.1 MB, free: 15.22 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002127/0.5519, allocations: 49.7 kB / 407.1 MB, free: 15.16 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002231/0.5521, allocations: 399.9 kB / 407.5 MB, free: 14.77 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003061/0.5525, allocations: 310.3 kB / 407.8 MB, free: 14.47 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001262/0.5526, allocations: 24 kB / 407.8 MB, free: 14.45 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.198e-05/0.5527, allocations: 346.8 kB / 408.2 MB, free: 14.1 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003572/0.5563, allocations: 0.7876 MB / 408.9 MB, free: 13.31 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003678/0.56, allocations: 0.9976 MB / 409.9 MB, free: 12.23 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003554/0.5636, allocations: 0.873 MB / 410.8 MB, free: 11.35 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.384e-06/0.5636, allocations: 4 kB / 410.8 MB, free: 11.35 MB / 282.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.0428/0.6064, allocations: 5.577 MB / 416.4 MB, free: 5.75 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.37e-05/0.6065, allocations: 75.52 kB / 416.5 MB, free: 5.664 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.682e-05/0.6066, allocations: 4 kB / 416.5 MB, free: 5.66 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06792/0.6745, allocations: 7.319 MB / 423.8 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001332/0.6759, allocations: 175.8 kB / 424 MB, free: 14.17 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0124/0.6883, allocations: 3.212 MB / 427.2 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00306/0.6914, allocations: 236.5 kB / 427.4 MB, free: 10.67 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001994/0.6916, allocations: 51.06 kB / 427.5 MB, free: 10.62 MB / 298.7 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.0006461/0.6923, allocations: 210.8 kB / 427.7 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002586/0.6926, allocations: 75.16 kB / 427.7 MB, free: 10.34 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04437/0.737, allocations: 5.457 MB / 433.2 MB, free: 4.867 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.491e-05/0.737, allocations: 15.98 kB / 433.2 MB, free: 4.852 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.133e-05/0.7371, allocations: 7.953 kB / 433.2 MB, free: 4.844 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.71e-05/0.7371, allocations: 3.984 kB / 433.2 MB, free: 4.84 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002319/0.7394, allocations: 1.088 MB / 434.3 MB, free: 3.727 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.7395, allocations: 0 / 434.3 MB, free: 3.727 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001064/0.7405, allocations: 125 kB / 434.4 MB, free: 3.605 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06797/0.8085, allocations: 7.288 MB / 441.7 MB, free: 12.31 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002513/0.8088, allocations: 23.98 kB / 441.7 MB, free: 12.29 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01049/0.8193, allocations: 3.098 MB / 444.8 MB, free: 9.133 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.8194, allocations: 0 / 444.8 MB, free: 9.133 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04868/0.8681, allocations: 6.412 MB / 451.3 MB, free: 2.703 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002868/0.8684, allocations: 144.2 kB / 451.4 MB, free: 2.543 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002639/0.8687, allocations: 16 kB / 451.4 MB, free: 2.527 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00266/0.8714, allocations: 215.8 kB / 451.6 MB, free: 2.316 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004629/0.8719, allocations: 100.8 kB / 451.7 MB, free: 2.219 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001554/0.872, allocations: 35.97 kB / 451.8 MB, free: 2.184 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005959/0.8726, allocations: 330.9 kB / 452.1 MB, free: 1.863 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.8727, allocations: 0 / 452.1 MB, free: 1.863 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00121/0.8739, allocations: 255.9 kB / 452.3 MB, free: 1.617 MB / 314.7 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.05024/0.9241, allocations: 6.997 MB / 459.3 MB, free: 10.6 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.01336/0.9375, allocations: 2.316 MB / 461.6 MB, free: 8.258 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.604e-05/0.9376, allocations: 8.312 kB / 461.6 MB, free: 8.25 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006924/0.9445, allocations: 1.15 MB / 462.8 MB, free: 7.102 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0011/0.9457, allocations: 118.8 kB / 462.9 MB, free: 6.988 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08065/1.026, allocations: 13.52 MB / 476.4 MB, free: 9.312 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006831/1.027, allocations: 0.9544 MB / 477.4 MB, free: 8.332 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006547/1.028, allocations: 259.3 kB / 477.6 MB, free: 8.082 MB / 346.7 MB Notification: Performance of SimCode: time 1.092e-06/1.028, allocations: 0 / 477.6 MB, free: 8.082 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.897/3.925, allocations: 19.17 MB / 496.8 MB, free: 4.887 MB / 362.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat does not exist to compare? outputFormat=mat