Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.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.HeatingMOSInverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingMOSInverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingMOSInverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingMOSInverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001108/0.001108, allocations: 103.3 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001311/0.001311, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.321/1.321, allocations: 227.4 MB / 246.3 MB, free: 9.055 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 64.41 kB / 306.4 MB, free: 0.7344 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09263/0.09395, allocations: 50.53 MB / 356.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingMOSInverter): time 0.004349/0.09834, allocations: 3.186 MB / 360.1 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001744/0.1001, allocations: 0.8468 MB / 360.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003274/0.1005, allocations: 8 kB / 360.9 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002436/0.1008, allocations: 43.62 kB / 361 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002857/0.101, allocations: 99.16 kB / 361.1 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004352/0.1015, allocations: 135.8 kB / 361.2 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005044/0.102, allocations: 0.5191 MB / 361.7 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002645/0.1023, allocations: 148.8 kB / 361.9 MB, free: 9.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003054/0.1026, allocations: 211.2 kB / 362.1 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000282/0.1029, allocations: 243 kB / 362.3 MB, free: 8.734 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.239e-05/0.103, allocations: 36 kB / 362.3 MB, free: 8.699 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001295/0.1031, allocations: 40 kB / 362.4 MB, free: 8.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.687e-05/0.1032, allocations: 95.64 kB / 362.5 MB, free: 8.566 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002002/0.1034, allocations: 222.8 kB / 362.7 MB, free: 8.348 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000471/0.1039, allocations: 0.5336 MB / 363.2 MB, free: 7.812 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.1039, allocations: 4 kB / 363.2 MB, free: 7.809 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1039, allocations: 0 / 363.2 MB, free: 7.809 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.082e-05/0.1039, allocations: 0 / 363.2 MB, free: 7.809 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: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001686/0.1056, allocations: 0.7953 MB / 364 MB, free: 6.961 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/0.1057, allocations: 12.03 kB / 364 MB, free: 6.949 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.503e-05/0.1058, allocations: 78.7 kB / 364.1 MB, free: 6.863 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002189/0.106, allocations: 56.38 kB / 364.2 MB, free: 6.809 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000389/0.1064, allocations: 315.4 kB / 364.5 MB, free: 6.465 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.758e-05/0.1065, allocations: 29.38 kB / 364.5 MB, free: 6.438 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.169e-05/0.1065, allocations: 32.38 kB / 364.5 MB, free: 6.406 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001029/0.1076, allocations: 0.5124 MB / 365.1 MB, free: 5.875 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.487e-05/0.1076, allocations: 0 / 365.1 MB, free: 5.875 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.348e-05/0.1076, allocations: 16 kB / 365.1 MB, free: 5.859 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.119e-05/0.1077, allocations: 8 kB / 365.1 MB, free: 5.852 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001281/0.1089, allocations: 0.4996 MB / 365.6 MB, free: 5.348 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.002483/0.1114, allocations: 1.671 MB / 367.2 MB, free: 3.535 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001034/0.1125, allocations: 431.4 kB / 367.7 MB, free: 3.105 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000493/0.113, allocations: 240.8 kB / 367.9 MB, free: 2.871 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.327e-05/0.113, allocations: 12.33 kB / 367.9 MB, free: 2.859 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.593e-05/0.1131, allocations: 38.83 kB / 368 MB, free: 2.812 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 1.573e-06/0.1131, allocations: 7.938 kB / 368 MB, free: 2.805 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.004732/0.1178, allocations: 1.357 MB / 369.3 MB, free: 1.398 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.933e-05/0.1179, allocations: 162.2 kB / 369.5 MB, free: 1.203 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000328/0.1183, allocations: 271 kB / 369.7 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.84e-05/0.1183, allocations: 37.7 kB / 369.8 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001341/0.1184, allocations: 212.3 kB / 370 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001036/0.1186, allocations: 138 kB / 370.1 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001307/0.1187, allocations: 74.12 kB / 370.2 MB, free: 472 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.1188, allocations: 338.8 kB / 370.5 MB, free: 124 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.162/0.2808, allocations: 184 kB / 370.7 MB, free: 20.17 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006245/0.2814, allocations: 279 kB / 371 MB, free: 20.07 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009484/0.2824, allocations: 423.7 kB / 371.4 MB, free: 20 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.2824, allocations: 0.8125 kB / 371.4 MB, free: 20 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001846/0.2843, allocations: 0.6842 MB / 372.1 MB, free: 19.94 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.97e-05/0.2843, allocations: 5.594 kB / 372.1 MB, free: 19.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/0.2843, allocations: 6.531 kB / 372.1 MB, free: 19.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001345/0.2857, allocations: 316.3 kB / 372.4 MB, free: 19.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000347/0.286, allocations: 82.38 kB / 372.5 MB, free: 19.92 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001028/0.2871, allocations: 1.343 MB / 373.8 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004637/0.2875, allocations: 78.56 kB / 373.9 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.305e-05/0.2876, allocations: 19.59 kB / 373.9 MB, free: 18.88 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,9), (1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.000168/0.2878, allocations: 164.6 kB / 374.1 MB, free: 18.74 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.248e-05/0.2878, allocations: 37.19 kB / 374.1 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002107/0.29, allocations: 0.7304 MB / 374.8 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.29, allocations: 5.031 kB / 374.8 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.29, allocations: 0.6094 kB / 374.8 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.29, allocations: 5.859 kB / 374.9 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005136/0.2905, allocations: 462.5 kB / 375.3 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.2905, allocations: 1.484 kB / 375.3 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002853/0.2908, allocations: 58.91 kB / 375.4 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00118/0.292, allocations: 328.7 kB / 375.7 MB, free: 18.1 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.164e-05/0.292, allocations: 7.922 kB / 375.7 MB, free: 18.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009305/0.293, allocations: 1.36 MB / 377.1 MB, free: 16.92 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.293, allocations: 0 / 377.1 MB, free: 16.92 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002331/0.2953, allocations: 1.016 MB / 378.1 MB, free: 16.5 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.067e-05/0.2954, allocations: 117.6 kB / 378.2 MB, free: 16.38 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.793e-05/0.2955, allocations: 6.594 kB / 378.2 MB, free: 16.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003822/0.2959, allocations: 54.77 kB / 378.2 MB, free: 16.36 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.533e-05/0.2959, allocations: 20.97 kB / 378.3 MB, free: 16.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.694e-05/0.296, allocations: 12.78 kB / 378.3 MB, free: 16.36 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002095/0.2962, allocations: 197.3 kB / 378.5 MB, free: 16.25 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2962, allocations: 0 / 378.5 MB, free: 16.25 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004178/0.2966, allocations: 111.2 kB / 378.6 MB, free: 16.22 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,10), (1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002763/0.2994, allocations: 1.574 MB / 380.2 MB, free: 15.26 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001217/0.3006, allocations: 470 kB / 380.6 MB, free: 15.14 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.3006, allocations: 0 / 380.6 MB, free: 15.14 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005631/0.3012, allocations: 260.1 kB / 380.9 MB, free: 15.06 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004688/0.3017, allocations: 50.86 kB / 380.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00708/0.3088, allocations: 4.245 MB / 385.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002819/0.3091, allocations: 0.7949 MB / 386 MB, free: 11.8 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001942/0.3093, allocations: 35.59 kB / 386 MB, free: 11.79 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000157/0.3095, allocations: 122.1 kB / 386.1 MB, free: 11.7 MB / 302.1 MB Notification: Performance of SimCode: time 1.342e-06/0.3095, allocations: 1.156 kB / 386.1 MB, free: 11.7 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02187/0.3314, allocations: 8.689 MB / 394.8 MB, free: 8.371 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001688/0.3316, allocations: 249.3 kB / 395 MB, free: 8.113 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.977/2.309, allocations: 0 / 395 MB, free: 8.113 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingMOSInverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingMOSInverter_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingMOSInverter.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingMOSInverter_res.mat does not exist to compare? outputFormat=mat