Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001617/0.001617, allocations: 99.81 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002264/0.002264, allocations: 202 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.524/1.524, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002584/0.0002585, allocations: 4 kB / 306.7 MB, free: 1.289 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1238/0.124, allocations: 51.49 MB / 358.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.004512/0.1286, allocations: 3.988 MB / 362.2 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002758/0.1314, allocations: 1.292 MB / 363.5 MB, free: 8.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007164/0.1321, allocations: 15.94 kB / 363.5 MB, free: 8.484 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003187/0.1325, allocations: 87.28 kB / 363.6 MB, free: 8.398 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009138/0.1334, allocations: 279.1 kB / 363.8 MB, free: 8.125 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008138/0.1342, allocations: 231.6 kB / 364.1 MB, free: 7.898 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001203/0.1355, allocations: 0.6955 MB / 364.8 MB, free: 7.199 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003579/0.1358, allocations: 203.7 kB / 365 MB, free: 6.988 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004261/0.1363, allocations: 354.7 kB / 365.3 MB, free: 6.641 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004726/0.1368, allocations: 414.3 kB / 365.7 MB, free: 6.234 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.402e-05/0.1368, allocations: 47.94 kB / 365.8 MB, free: 6.188 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001673/0.137, allocations: 63.98 kB / 365.8 MB, free: 6.125 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001439/0.1372, allocations: 151.4 kB / 366 MB, free: 5.977 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001481/0.1373, allocations: 173.3 kB / 366.1 MB, free: 5.801 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006937/0.138, allocations: 0.7325 MB / 366.9 MB, free: 5.066 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.138, allocations: 4 kB / 366.9 MB, free: 5.062 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.138, allocations: 0 / 366.9 MB, free: 5.062 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.357e-06/0.1381, allocations: 0 / 366.9 MB, free: 5.062 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.002314/0.1404, allocations: 1.165 MB / 368 MB, free: 3.832 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/0.1404, allocations: 8.031 kB / 368.1 MB, free: 3.824 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001386/0.1406, allocations: 110.4 kB / 368.2 MB, free: 3.707 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001447/0.1407, allocations: 94.88 kB / 368.3 MB, free: 3.613 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006138/0.1413, allocations: 458.7 kB / 368.7 MB, free: 3.125 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.362e-05/0.1414, allocations: 49.31 kB / 368.7 MB, free: 3.074 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001126/0.1415, allocations: 67.95 kB / 368.8 MB, free: 3.008 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001362/0.1429, allocations: 0.6701 MB / 369.5 MB, free: 2.332 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.011e-05/0.1429, allocations: 4 kB / 369.5 MB, free: 2.328 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.692e-05/0.143, allocations: 27.98 kB / 369.5 MB, free: 2.301 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.683e-05/0.143, allocations: 16 kB / 369.5 MB, free: 2.285 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001741/0.1448, allocations: 0.7469 MB / 370.3 MB, free: 1.539 MB / 302.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.2356/0.3803, allocations: 2.424 MB / 372.7 MB, free: 18.56 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001785/0.3822, allocations: 0.6362 MB / 373.3 MB, free: 18.53 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.581e-05/0.3822, allocations: 9.5 kB / 373.3 MB, free: 18.53 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00133/0.3836, allocations: 455.8 kB / 373.8 MB, free: 18.45 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 2.363e-05/0.3836, allocations: 0 / 373.8 MB, free: 18.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.07336/0.457, allocations: 16.72 MB / 390.5 MB, free: 13.88 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.67e-05/0.4571, allocations: 152.8 kB / 390.7 MB, free: 13.71 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008227/0.458, allocations: 0.5199 MB / 391.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000268/0.4582, allocations: 45.7 kB / 391.2 MB, free: 13.34 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003051/0.4586, allocations: 386.7 kB / 391.6 MB, free: 12.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003414/0.4589, allocations: 320.3 kB / 391.9 MB, free: 12.64 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.566e-05/0.459, allocations: 20 kB / 391.9 MB, free: 12.62 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.4591, allocations: 382.8 kB / 392.3 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001812/0.4609, allocations: 0.7947 MB / 393.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00195/0.4629, allocations: 1.029 MB / 394.1 MB, free: 10.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001867/0.4648, allocations: 0.8838 MB / 395 MB, free: 9.449 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.4648, allocations: 4 kB / 395 MB, free: 9.445 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02184/0.4867, allocations: 5.652 MB / 400.7 MB, free: 3.766 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.351e-05/0.4868, allocations: 63.39 kB / 400.7 MB, free: 3.691 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.991e-05/0.4868, allocations: 8 kB / 400.7 MB, free: 3.684 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03425/0.5211, allocations: 7.308 MB / 408.1 MB, free: 12.37 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007596/0.5219, allocations: 183.7 kB / 408.2 MB, free: 12.19 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006722/0.5286, allocations: 3.207 MB / 411.4 MB, free: 8.934 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00179/0.5304, allocations: 232.7 kB / 411.7 MB, free: 8.707 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001156/0.5306, allocations: 47.97 kB / 411.7 MB, free: 8.66 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * 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 (54): * Single equations (assignments): 50 * 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.0004916/0.5311, allocations: 223.6 kB / 411.9 MB, free: 8.434 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001568/0.5312, allocations: 82.97 kB / 412 MB, free: 8.352 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02215/0.5534, allocations: 5.466 MB / 417.5 MB, free: 2.875 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.129e-05/0.5535, allocations: 15.98 kB / 417.5 MB, free: 2.859 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.097e-05/0.5535, allocations: 0 / 417.5 MB, free: 2.859 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.071e-05/0.5535, allocations: 7.938 kB / 417.5 MB, free: 2.852 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001869/0.5554, allocations: 1.107 MB / 418.6 MB, free: 1.723 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.5554, allocations: 7.953 kB / 418.6 MB, free: 1.715 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005637/0.556, allocations: 127.6 kB / 418.7 MB, free: 1.594 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03429/0.5903, allocations: 7.291 MB / 426 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002521/0.5906, allocations: 27.97 kB / 426.1 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005862/0.5965, allocations: 3.066 MB / 429.1 MB, free: 7.145 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.5965, allocations: 0 / 429.1 MB, free: 7.145 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02506/0.6216, allocations: 6.423 MB / 435.5 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004278/0.6221, allocations: 148.1 kB / 435.7 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000186/0.6223, allocations: 16 kB / 435.7 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001473/0.6238, allocations: 219.8 kB / 435.9 MB, free: 316 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003444/0.6241, allocations: 96.84 kB / 436 MB, free: 220 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.28e-05/0.6242, allocations: 36.72 kB / 436.1 MB, free: 184 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004601/0.6247, allocations: 346.8 kB / 436.4 MB, free: 15.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.6247, allocations: 3.172 kB / 436.4 MB, free: 15.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000841/0.6255, allocations: 258.6 kB / 436.6 MB, free: 15.59 MB / 350.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.02588/0.6514, allocations: 6.997 MB / 443.6 MB, free: 8.562 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00705/0.6585, allocations: 2.331 MB / 446 MB, free: 6.207 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/0.6586, allocations: 5.312 kB / 446 MB, free: 6.203 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003539/0.6621, allocations: 1.149 MB / 447.1 MB, free: 5.059 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008783/0.663, allocations: 118.2 kB / 447.2 MB, free: 4.941 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03582/0.6989, allocations: 14.29 MB / 461.5 MB, free: 6.438 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006918/0.6996, allocations: 0.974 MB / 462.5 MB, free: 5.434 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003634/0.7, allocations: 58.27 kB / 462.6 MB, free: 5.375 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003605/0.7004, allocations: 271.3 kB / 462.8 MB, free: 5.109 MB / 366.1 MB Notification: Performance of SimCode: time 9.22e-07/0.7004, allocations: 0 / 462.8 MB, free: 5.109 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05135/0.7517, allocations: 26.29 MB / 489.1 MB, free: 11.1 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001795/0.752, allocations: 212.5 kB / 489.3 MB, free: 10.86 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.927/3.679, allocations: 0 / 489.3 MB, free: 10.86 MB / 398.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat does not exist to compare? outputFormat=mat