Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.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.HeatingPNP_NORGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",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.0009205/0.0009204, allocations: 91.88 kB / 16.95 MB, free: 6.441 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.0009695/0.0009695, allocations: 181.2 kB / 17.84 MB, free: 6.008 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.462/1.462, allocations: 205.4 MB / 224 MB, free: 13.06 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.0006355/0.0006359, allocations: 16 kB / 280.9 MB, free: 3.629 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.143/0.1437, allocations: 47.58 MB / 328.4 MB, free: 3.98 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.004701/0.1484, allocations: 4.064 MB / 332.5 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002806/0.1513, allocations: 1.23 MB / 333.7 MB, free: 14.65 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006529/0.152, allocations: 15.94 kB / 333.8 MB, free: 14.64 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003651/0.1523, allocations: 79.3 kB / 333.8 MB, free: 14.56 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007215/0.1531, allocations: 214.2 kB / 334 MB, free: 14.35 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007398/0.1538, allocations: 215.7 kB / 334.3 MB, free: 14.14 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001205/0.1551, allocations: 0.9391 MB / 335.2 MB, free: 13.2 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004173/0.1555, allocations: 195.5 kB / 335.4 MB, free: 12.99 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006582/0.1562, allocations: 346.7 kB / 335.7 MB, free: 12.65 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007482/0.1569, allocations: 406.3 kB / 336.1 MB, free: 12.25 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001713/0.1571, allocations: 44 kB / 336.2 MB, free: 12.21 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000264/0.1574, allocations: 67.97 kB / 336.2 MB, free: 12.14 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000157/0.1575, allocations: 147.4 kB / 336.4 MB, free: 12 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002315/0.1578, allocations: 165.3 kB / 336.5 MB, free: 11.83 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006642/0.1584, allocations: 0.7053 MB / 337.2 MB, free: 11.12 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.1585, allocations: 4 kB / 337.2 MB, free: 11.12 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.1585, allocations: 0 / 337.2 MB, free: 11.12 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.354e-05/0.1585, allocations: 4 kB / 337.2 MB, free: 11.11 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.002268/0.1608, allocations: 1.129 MB / 338.4 MB, free: 9.918 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/0.1608, allocations: 11.97 kB / 338.4 MB, free: 9.906 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001804/0.161, allocations: 102.5 kB / 338.5 MB, free: 9.797 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001696/0.1612, allocations: 86.97 kB / 338.6 MB, free: 9.711 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006197/0.1618, allocations: 436.6 kB / 339 MB, free: 9.246 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.658e-05/0.1619, allocations: 53.27 kB / 339.1 MB, free: 9.195 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001049/0.162, allocations: 60 kB / 339.1 MB, free: 9.137 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001371/0.1634, allocations: 0.6584 MB / 339.8 MB, free: 8.469 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.061e-05/0.1634, allocations: 0 / 339.8 MB, free: 8.469 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.495e-05/0.1635, allocations: 28 kB / 339.8 MB, free: 8.441 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.45e-05/0.1635, allocations: 12 kB / 339.8 MB, free: 8.43 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001578/0.1651, allocations: 0.7351 MB / 340.5 MB, free: 7.695 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.003855/0.1689, allocations: 2.378 MB / 342.9 MB, free: 5.156 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001371/0.1703, allocations: 0.6374 MB / 343.6 MB, free: 4.512 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006826/0.171, allocations: 354 kB / 343.9 MB, free: 4.164 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.276e-05/0.1711, allocations: 12.44 kB / 343.9 MB, free: 4.152 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009572/0.1721, allocations: 453.3 kB / 344.4 MB, free: 3.684 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 2.505e-06/0.1721, allocations: 0 / 344.4 MB, free: 3.684 MB / 286.1 MB Notification: Performance of matching and sorting (n=94): time 0.06499/0.2371, allocations: 16.73 MB / 361.1 MB, free: 2.848 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001028/0.2372, allocations: 145.5 kB / 361.2 MB, free: 2.676 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006956/0.2379, allocations: 490.8 kB / 361.7 MB, free: 2.191 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000184/0.2381, allocations: 45.7 kB / 361.8 MB, free: 2.141 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002864/0.2384, allocations: 367.9 kB / 362.1 MB, free: 1.773 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003675/0.2388, allocations: 315.4 kB / 362.4 MB, free: 1.461 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.48e-05/0.2389, allocations: 23.94 kB / 362.4 MB, free: 1.438 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.2391, allocations: 382.8 kB / 362.8 MB, free: 1.055 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001956/0.241, allocations: 0.7905 MB / 363.6 MB, free: 272 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002096/0.2431, allocations: 1.001 MB / 364.6 MB, free: 15.18 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001969/0.2451, allocations: 0.8769 MB / 365.5 MB, free: 14.29 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.2451, 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.2665, allocations: 5.624 MB / 371.1 MB, free: 8.645 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.264e-05/0.2666, allocations: 63.41 kB / 371.2 MB, free: 8.57 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.867e-05/0.2667, allocations: 4 kB / 371.2 MB, free: 8.566 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03108/0.2977, allocations: 7.324 MB / 378.5 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000693/0.2985, allocations: 175.8 kB / 378.7 MB, free: 1.055 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1827/0.4812, allocations: 3.193 MB / 381.9 MB, free: 51.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001701/0.4829, allocations: 221.1 kB / 382.1 MB, free: 51.39 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001229/0.4831, allocations: 45.84 kB / 382.1 MB, free: 51.39 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.000433/0.4835, allocations: 226.9 kB / 382.4 MB, free: 51.27 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001329/0.4837, allocations: 77.16 kB / 382.4 MB, free: 51.27 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02191/0.5056, allocations: 5.471 MB / 387.9 MB, free: 50.87 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.818e-05/0.5057, allocations: 8.75 kB / 387.9 MB, free: 50.87 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.789e-05/0.5057, allocations: 5.031 kB / 387.9 MB, free: 50.87 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.124e-05/0.5058, allocations: 3.797 kB / 387.9 MB, free: 50.87 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002053/0.5078, allocations: 1.085 MB / 389 MB, free: 50.31 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/0.5079, allocations: 0 / 389 MB, free: 50.31 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005296/0.5084, allocations: 129.5 kB / 389.1 MB, free: 50.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02996/0.5384, allocations: 7.285 MB / 396.4 MB, free: 48.72 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002103/0.5386, allocations: 27.81 kB / 396.4 MB, free: 48.7 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004467/0.5431, allocations: 3.077 MB / 399.5 MB, free: 46.2 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.5431, allocations: 0 / 399.5 MB, free: 46.2 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02014/0.5633, allocations: 6.424 MB / 405.9 MB, free: 39.79 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001865/0.5635, allocations: 144.2 kB / 406.1 MB, free: 39.62 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001471/0.5637, allocations: 16 kB / 406.1 MB, free: 39.61 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001149/0.5648, allocations: 211.8 kB / 406.3 MB, free: 39.4 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002302/0.565, allocations: 100.8 kB / 406.4 MB, free: 39.3 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.762e-05/0.5651, allocations: 35.92 kB / 406.4 MB, free: 39.27 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003221/0.5655, allocations: 334.9 kB / 406.8 MB, free: 38.95 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5655, allocations: 0 / 406.8 MB, free: 38.95 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007596/0.5662, allocations: 257.5 kB / 407 MB, free: 38.7 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.02107/0.5873, allocations: 6.989 MB / 414 MB, free: 31.68 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.005823/0.5932, allocations: 2.327 MB / 416.3 MB, free: 29.33 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/0.5932, allocations: 0 / 416.3 MB, free: 29.33 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002857/0.5961, allocations: 1.149 MB / 417.5 MB, free: 28.19 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007179/0.5969, allocations: 124.5 kB / 417.6 MB, free: 28.07 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02661/0.6235, allocations: 10.21 MB / 427.8 MB, free: 17.75 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003019/0.6238, allocations: 0.9388 MB / 428.7 MB, free: 16.78 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003189/0.6242, allocations: 58.06 kB / 428.8 MB, free: 16.72 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002763/0.6244, allocations: 259.3 kB / 429.1 MB, free: 16.47 MB / 318.1 MB Notification: Performance of SimCode: time 1.092e-06/0.6245, allocations: 0 / 429.1 MB, free: 16.47 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04223/0.6667, allocations: 25.96 MB / 455 MB, free: 6.477 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001591/0.6669, allocations: 222.1 kB / 455.2 MB, free: 6.234 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.021/3.687, allocations: 4 kB / 455.2 MB, free: 6.23 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat does not exist to compare? outputFormat=mat