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.001243/0.001243, allocations: 96.89 kB / 16.93 MB, free: 5.984 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.00118/0.00118, allocations: 179.4 kB / 17.82 MB, free: 5.652 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.389/1.389, 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.0004519/0.0004521, allocations: 19.27 kB / 280.8 MB, free: 3.656 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09842/0.09888, allocations: 47.58 MB / 328.4 MB, free: 4.004 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.004626/0.1036, allocations: 3.769 MB / 332.2 MB, free: 216 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002771/0.1064, allocations: 1.277 MB / 333.5 MB, free: 14.93 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006039/0.107, allocations: 8 kB / 333.5 MB, free: 14.92 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002765/0.1073, allocations: 83.3 kB / 333.6 MB, free: 14.84 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006857/0.108, allocations: 259.2 kB / 333.8 MB, free: 14.58 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006664/0.1087, allocations: 219.6 kB / 334 MB, free: 14.37 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007736/0.1095, allocations: 0.6604 MB / 334.7 MB, free: 13.71 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003345/0.1098, allocations: 199.5 kB / 334.9 MB, free: 13.5 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004669/0.1103, allocations: 354.8 kB / 335.2 MB, free: 13.15 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005083/0.1108, allocations: 402.4 kB / 335.6 MB, free: 12.75 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.755e-05/0.1109, allocations: 44 kB / 335.7 MB, free: 12.71 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001635/0.1111, allocations: 67.97 kB / 335.7 MB, free: 12.64 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001191/0.1112, allocations: 139.4 kB / 335.9 MB, free: 12.51 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001567/0.1114, allocations: 165.3 kB / 336 MB, free: 12.34 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006592/0.112, allocations: 0.7053 MB / 336.7 MB, free: 11.63 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.112, allocations: 0 / 336.7 MB, free: 11.63 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.649e-06/0.112, allocations: 0 / 336.7 MB, free: 11.63 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.598e-06/0.1121, allocations: 3.938 kB / 336.7 MB, free: 11.63 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.002173/0.1142, allocations: 1.126 MB / 337.9 MB, free: 10.44 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/0.1143, allocations: 19.97 kB / 337.9 MB, free: 10.42 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001228/0.1144, allocations: 106.5 kB / 338 MB, free: 10.3 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001325/0.1146, allocations: 86.97 kB / 338.1 MB, free: 10.22 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006087/0.1152, allocations: 436.6 kB / 338.5 MB, free: 9.754 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.18e-05/0.1153, allocations: 53.27 kB / 338.5 MB, free: 9.703 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.603e-05/0.1154, allocations: 56 kB / 338.6 MB, free: 9.648 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001356/0.1167, allocations: 0.6584 MB / 339.3 MB, free: 8.98 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.959e-05/0.1168, allocations: 4 kB / 339.3 MB, free: 8.977 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.304e-05/0.1168, allocations: 20 kB / 339.3 MB, free: 8.957 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.61e-05/0.1168, allocations: 16 kB / 339.3 MB, free: 8.941 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001669/0.1185, allocations: 0.7312 MB / 340 MB, free: 8.211 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.003766/0.1223, allocations: 2.367 MB / 342.4 MB, free: 5.684 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001477/0.1238, allocations: 0.6412 MB / 343 MB, free: 5.035 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.705e-05/0.1239, allocations: 16.42 kB / 343.1 MB, free: 5.02 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009525/0.1248, allocations: 449.4 kB / 343.5 MB, free: 4.555 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 2.154e-06/0.1248, allocations: 3.938 kB / 343.5 MB, free: 4.551 MB / 286.1 MB Notification: Performance of matching and sorting (n=94): time 0.07014/0.195, allocations: 16.71 MB / 360.2 MB, free: 3.742 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/0.1951, allocations: 145.5 kB / 360.3 MB, free: 3.57 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006409/0.1958, allocations: 494.8 kB / 360.8 MB, free: 3.082 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001906/0.196, allocations: 49.7 kB / 360.9 MB, free: 3.027 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002769/0.1963, allocations: 363.9 kB / 361.2 MB, free: 2.664 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002757/0.1966, allocations: 315.5 kB / 361.5 MB, free: 2.352 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.775e-05/0.1966, allocations: 20 kB / 361.6 MB, free: 2.332 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001847/0.1968, allocations: 382.8 kB / 361.9 MB, free: 1.949 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002045/0.1989, allocations: 0.7905 MB / 362.7 MB, free: 1.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002188/0.2011, allocations: 1.001 MB / 363.7 MB, free: 80 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0021/0.2032, allocations: 0.8731 MB / 364.6 MB, free: 15.19 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.2032, allocations: 0 / 364.6 MB, free: 15.19 MB / 318.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02317/0.2264, allocations: 5.62 MB / 370.2 MB, free: 9.547 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.623e-05/0.2265, allocations: 67.41 kB / 370.3 MB, free: 9.469 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.446e-05/0.2265, allocations: 4 kB / 370.3 MB, free: 9.465 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03392/0.2605, allocations: 7.328 MB / 377.6 MB, free: 2.121 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007168/0.2612, allocations: 167.8 kB / 377.8 MB, free: 1.957 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1722/0.4334, allocations: 3.2 MB / 381 MB, free: 51.68 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001804/0.4353, allocations: 224.4 kB / 381.2 MB, free: 51.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001405/0.4354, allocations: 43.38 kB / 381.2 MB, free: 51.68 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.0004657/0.4359, allocations: 222.2 kB / 381.5 MB, free: 51.57 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001893/0.4361, allocations: 77.94 kB / 381.5 MB, free: 51.57 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02314/0.4593, allocations: 5.464 MB / 387 MB, free: 51.36 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.203e-05/0.4593, allocations: 9.281 kB / 387 MB, free: 51.36 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.154e-05/0.4594, allocations: 1.531 kB / 387 MB, free: 51.36 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.06e-05/0.4594, allocations: 3.844 kB / 387 MB, free: 51.36 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001386/0.4608, allocations: 1.089 MB / 388.1 MB, free: 50.79 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.023e-06/0.4608, allocations: 0.9688 kB / 388.1 MB, free: 50.79 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000574/0.4614, allocations: 126.5 kB / 388.2 MB, free: 50.79 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03176/0.4931, allocations: 7.29 MB / 395.5 MB, free: 49.34 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001561/0.4933, allocations: 27.62 kB / 395.5 MB, free: 49.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00465/0.498, allocations: 3.077 MB / 398.6 MB, free: 47.14 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.498, allocations: 0 / 398.6 MB, free: 47.14 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02176/0.5198, allocations: 6.423 MB / 405 MB, free: 40.71 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002554/0.5201, allocations: 136.3 kB / 405.2 MB, free: 40.56 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001567/0.5202, allocations: 20 kB / 405.2 MB, free: 40.54 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001279/0.5215, allocations: 211.8 kB / 405.4 MB, free: 40.34 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002159/0.5218, allocations: 104.8 kB / 405.5 MB, free: 40.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.596e-05/0.5218, allocations: 39.81 kB / 405.5 MB, free: 40.2 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003052/0.5222, allocations: 330.9 kB / 405.9 MB, free: 39.88 MB / 318.1 MB Notification: Performance of sort global known variables: time 8.91e-07/0.5222, allocations: 0 / 405.9 MB, free: 39.88 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006601/0.5228, allocations: 255.8 kB / 406.1 MB, free: 39.63 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.02258/0.5454, allocations: 7 MB / 413.1 MB, free: 32.61 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.006088/0.5515, allocations: 2.323 MB / 415.4 MB, free: 30.27 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 8.366e-06/0.5516, allocations: 0 / 415.4 MB, free: 30.27 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003084/0.5547, allocations: 1.149 MB / 416.6 MB, free: 29.12 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007465/0.5555, allocations: 103 kB / 416.7 MB, free: 29.02 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02868/0.5842, allocations: 13.5 MB / 430.2 MB, free: 15.38 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000291/0.5845, allocations: 0.9544 MB / 431.2 MB, free: 14.4 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002884/0.5848, allocations: 55.25 kB / 431.2 MB, free: 14.34 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002441/0.585, allocations: 259.3 kB / 431.5 MB, free: 14.09 MB / 318.1 MB Notification: Performance of SimCode: time 1.332e-06/0.585, allocations: 0 / 431.5 MB, free: 14.09 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04112/0.6262, allocations: 25.94 MB / 457.4 MB, free: 4.125 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000222/0.6264, allocations: 216.8 kB / 457.6 MB, free: 3.883 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.612/3.238, allocations: 0 / 457.6 MB, free: 3.883 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