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.001077/0.001077, allocations: 99.08 kB / 16.94 MB, free: 5.961 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: 181.9 kB / 17.82 MB, free: 5.648 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.43/1.43, allocations: 205.4 MB / 224 MB, free: 13.17 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.0004448/0.0004449, allocations: 8.781 kB / 280.8 MB, free: 3.656 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09202/0.09248, allocations: 47.58 MB / 328.4 MB, free: 4.004 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.003978/0.09649, allocations: 3.781 MB / 332.2 MB, free: 204 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002201/0.09873, allocations: 1.285 MB / 333.5 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002844/0.09903, allocations: 11.94 kB / 333.5 MB, free: 14.89 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001471/0.09919, allocations: 79.36 kB / 333.6 MB, free: 14.82 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004752/0.09967, allocations: 267.2 kB / 333.8 MB, free: 14.55 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005126/0.1002, allocations: 219.6 kB / 334 MB, free: 14.34 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000705/0.1009, allocations: 0.6644 MB / 334.7 MB, free: 13.68 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003044/0.1012, allocations: 199.5 kB / 334.9 MB, free: 13.46 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003544/0.1016, allocations: 350.8 kB / 335.3 MB, free: 13.12 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004169/0.102, allocations: 402.3 kB / 335.6 MB, free: 12.73 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.643e-05/0.1021, allocations: 48 kB / 335.7 MB, free: 12.68 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001458/0.1023, allocations: 59.98 kB / 335.7 MB, free: 12.62 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001347/0.1024, allocations: 143.5 kB / 335.9 MB, free: 12.48 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001689/0.1026, allocations: 165.3 kB / 336 MB, free: 12.31 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005945/0.1032, allocations: 0.7092 MB / 336.8 MB, free: 11.6 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.1032, allocations: 0 / 336.8 MB, free: 11.6 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1032, allocations: 0 / 336.8 MB, free: 11.6 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.034e-05/0.1032, allocations: 4 kB / 336.8 MB, free: 11.6 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.002106/0.1053, allocations: 1.126 MB / 337.9 MB, free: 10.41 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.1054, allocations: 8.031 kB / 337.9 MB, free: 10.4 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000146/0.1055, allocations: 106.5 kB / 338 MB, free: 10.29 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001294/0.1057, allocations: 86.97 kB / 338.1 MB, free: 10.2 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005598/0.1062, allocations: 444.5 kB / 338.5 MB, free: 9.727 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.421e-05/0.1063, allocations: 49.27 kB / 338.6 MB, free: 9.68 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.882e-05/0.1064, allocations: 60 kB / 338.6 MB, free: 9.621 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001257/0.1076, allocations: 0.6584 MB / 339.3 MB, free: 8.953 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.637e-05/0.1077, allocations: 0 / 339.3 MB, free: 8.953 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.678e-05/0.1077, allocations: 28 kB / 339.3 MB, free: 8.926 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.327e-05/0.1077, allocations: 12 kB / 339.3 MB, free: 8.914 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001638/0.1094, allocations: 0.7312 MB / 340.1 MB, free: 8.184 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.003848/0.1133, allocations: 2.363 MB / 342.4 MB, free: 5.66 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001449/0.1147, allocations: 0.6413 MB / 343.1 MB, free: 5.012 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.669e-05/0.1148, allocations: 12.42 kB / 343.1 MB, free: 5 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000955/0.1157, allocations: 453.3 kB / 343.5 MB, free: 4.531 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 2.715e-06/0.1158, allocations: 4 kB / 343.5 MB, free: 4.527 MB / 286.1 MB Notification: Performance of matching and sorting (n=94): time 0.06784/0.1836, allocations: 16.7 MB / 360.2 MB, free: 3.723 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.402e-05/0.1837, allocations: 145.5 kB / 360.4 MB, free: 3.551 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005689/0.1843, allocations: 490.8 kB / 360.8 MB, free: 3.066 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001204/0.1844, allocations: 45.64 kB / 360.9 MB, free: 3.016 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002517/0.1847, allocations: 363.9 kB / 361.2 MB, free: 2.652 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002889/0.185, allocations: 315.5 kB / 361.6 MB, free: 2.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.356e-05/0.1851, allocations: 20 kB / 361.6 MB, free: 2.32 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001449/0.1852, allocations: 390.7 kB / 362 MB, free: 1.93 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001967/0.1872, allocations: 0.7905 MB / 362.7 MB, free: 1.141 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002108/0.1893, allocations: 0.9929 MB / 363.7 MB, free: 68 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002062/0.1914, allocations: 0.873 MB / 364.6 MB, free: 15.18 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.681e-06/0.1914, allocations: 4 kB / 364.6 MB, free: 15.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02341/0.2148, allocations: 5.62 MB / 370.2 MB, free: 9.531 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.265e-05/0.2149, allocations: 63.41 kB / 370.3 MB, free: 9.457 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.549e-05/0.215, allocations: 8 kB / 370.3 MB, free: 9.449 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03471/0.2497, allocations: 7.316 MB / 377.6 MB, free: 2.117 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008142/0.2505, allocations: 171.7 kB / 377.8 MB, free: 1.949 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1787/0.4292, allocations: 3.219 MB / 381 MB, free: 51.76 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00178/0.431, allocations: 216.7 kB / 381.2 MB, free: 51.76 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001422/0.4312, allocations: 52.02 kB / 381.3 MB, free: 51.76 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.0004371/0.4316, allocations: 221.4 kB / 381.5 MB, free: 51.65 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001687/0.4318, allocations: 79 kB / 381.6 MB, free: 51.65 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02303/0.4549, allocations: 5.463 MB / 387 MB, free: 51.43 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.26e-05/0.4549, allocations: 10.5 kB / 387 MB, free: 51.43 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/0.455, allocations: 0 / 387 MB, free: 51.43 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.131e-05/0.455, allocations: 3.797 kB / 387 MB, free: 51.43 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001367/0.4564, allocations: 1.089 MB / 388.1 MB, free: 50.86 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.4564, allocations: 1.062 kB / 388.1 MB, free: 50.86 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005604/0.4569, allocations: 125.9 kB / 388.3 MB, free: 50.86 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03279/0.4897, allocations: 7.288 MB / 395.5 MB, free: 49.41 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001764/0.49, allocations: 23.7 kB / 395.6 MB, free: 49.39 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004777/0.4947, allocations: 3.088 MB / 398.7 MB, free: 47.15 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.4948, allocations: 3.938 kB / 398.7 MB, free: 47.14 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02233/0.5171, allocations: 6.42 MB / 405.1 MB, free: 40.72 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001898/0.5173, allocations: 140.3 kB / 405.2 MB, free: 40.57 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001531/0.5175, allocations: 16 kB / 405.2 MB, free: 40.55 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00133/0.5188, allocations: 219.8 kB / 405.4 MB, free: 40.34 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002062/0.5191, allocations: 100.8 kB / 405.5 MB, free: 40.24 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.58e-05/0.5191, allocations: 35.97 kB / 405.6 MB, free: 40.2 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003169/0.5195, allocations: 330.9 kB / 405.9 MB, free: 39.88 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5195, allocations: 3.719 kB / 405.9 MB, free: 39.88 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006672/0.5201, allocations: 252 kB / 406.1 MB, free: 39.64 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.02321/0.5434, allocations: 6.995 MB / 413.1 MB, free: 32.61 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.006031/0.5495, allocations: 2.317 MB / 415.5 MB, free: 30.28 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.754e-06/0.5495, allocations: 4.25 kB / 415.5 MB, free: 30.27 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003051/0.5526, allocations: 1.155 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.0007323/0.5533, allocations: 108.5 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.02906/0.5824, allocations: 13.48 MB / 430.2 MB, free: 15.39 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003149/0.5828, allocations: 0.9544 MB / 431.2 MB, free: 14.41 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003362/0.5831, allocations: 58.06 kB / 431.2 MB, free: 14.35 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002795/0.5834, allocations: 256.1 kB / 431.5 MB, free: 14.11 MB / 318.1 MB Notification: Performance of SimCode: time 8.51e-07/0.5834, allocations: 0 / 431.5 MB, free: 14.11 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04559/0.629, allocations: 26 MB / 457.5 MB, free: 4.082 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001924/0.6292, allocations: 207.7 kB / 457.7 MB, free: 3.848 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.602/3.231, allocations: 0 / 457.7 MB, free: 3.848 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