Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.SwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001007/0.001007, allocations: 96 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.001323/0.001324, allocations: 207.5 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.406/1.406, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002537/0.0002538, allocations: 8 kB / 306.7 MB, free: 1.277 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1051, allocations: 51.49 MB / 358.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003404/0.1085, allocations: 2.323 MB / 360.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001573/0.1102, allocations: 0.7445 MB / 361.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001983/0.1104, allocations: 7.938 kB / 361.3 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.346e-05/0.1105, allocations: 31.75 kB / 361.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002773/0.1108, allocations: 119.7 kB / 361.4 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003816/0.1111, allocations: 75.78 kB / 361.5 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003863/0.1115, allocations: 247.5 kB / 361.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002616/0.1118, allocations: 94.33 kB / 361.8 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001481/0.112, allocations: 119.5 kB / 362 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002218/0.1122, allocations: 127.5 kB / 362.1 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.359e-05/0.1123, allocations: 16 kB / 362.1 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.565e-05/0.1123, allocations: 16 kB / 362.1 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.534e-05/0.1124, allocations: 63.73 kB / 362.2 MB, free: 9.793 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.088e-05/0.1125, allocations: 89.52 kB / 362.3 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002718/0.1127, allocations: 255.5 kB / 362.5 MB, free: 9.449 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.1128, allocations: 0 / 362.5 MB, free: 9.449 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1128, allocations: 0 / 362.5 MB, free: 9.449 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.051e-06/0.1128, allocations: 0 / 362.5 MB, free: 9.449 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0009961/0.1138, allocations: 0.5549 MB / 363.1 MB, free: 8.848 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.696e-05/0.1138, allocations: 12.03 kB / 363.1 MB, free: 8.836 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.259e-05/0.1139, allocations: 66.53 kB / 363.1 MB, free: 8.762 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001045/0.114, allocations: 31.62 kB / 363.2 MB, free: 8.73 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003365/0.1144, allocations: 259.1 kB / 363.4 MB, free: 8.438 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.028e-05/0.1145, allocations: 92 kB / 363.5 MB, free: 8.336 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.674e-05/0.1145, allocations: 28 kB / 363.5 MB, free: 8.309 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005004/0.1151, allocations: 293.7 kB / 363.8 MB, free: 8.012 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.1151, allocations: 0 / 363.8 MB, free: 8.012 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.499e-05/0.1151, allocations: 8 kB / 363.8 MB, free: 8.004 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.279e-05/0.1151, allocations: 8 kB / 363.8 MB, free: 7.996 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000349/0.1155, allocations: 194.1 kB / 364 MB, free: 7.805 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001704/0.1172, allocations: 1.147 MB / 365.2 MB, free: 6.574 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002835/0.1175, allocations: 150.6 kB / 365.3 MB, free: 6.418 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.167e-05/0.1175, allocations: 4 kB / 365.3 MB, free: 6.414 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002675/0.1178, allocations: 159.1 kB / 365.5 MB, free: 6.242 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.293e-06/0.1178, allocations: 0 / 365.5 MB, free: 6.242 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001043/0.1189, allocations: 401.3 kB / 365.9 MB, free: 5.824 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.442e-05/0.119, allocations: 106.8 kB / 366 MB, free: 5.695 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002645/0.1192, allocations: 221 kB / 366.2 MB, free: 5.469 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.069e-05/0.1193, allocations: 37.7 kB / 366.2 MB, free: 5.426 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000141/0.1194, allocations: 176.2 kB / 366.4 MB, free: 5.25 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.411e-05/0.1195, allocations: 71.08 kB / 366.5 MB, free: 5.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.354e-05/0.1195, allocations: 8 kB / 366.5 MB, free: 5.172 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.1197, allocations: 330.8 kB / 366.8 MB, free: 4.84 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001286/0.1198, allocations: 67.92 kB / 366.9 MB, free: 4.773 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001714/0.12, allocations: 136.8 kB / 367 MB, free: 4.605 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001545/0.1202, allocations: 81.11 kB / 367.1 MB, free: 4.527 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.1202, allocations: 0 / 367.1 MB, free: 4.527 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004267/0.1206, allocations: 278.5 kB / 367.4 MB, free: 4.25 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.1206, allocations: 4 kB / 367.4 MB, free: 4.246 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.1206, allocations: 7.938 kB / 367.4 MB, free: 4.238 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002636/0.1209, allocations: 57.03 kB / 367.4 MB, free: 4.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002136/0.1211, allocations: 55.88 kB / 367.5 MB, free: 4.125 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001316/0.1225, allocations: 1.408 MB / 368.9 MB, free: 2.586 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002247/0.1227, allocations: 35.73 kB / 368.9 MB, free: 2.551 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.353e-05/0.1227, allocations: 20.17 kB / 368.9 MB, free: 2.531 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: 10 ($whenCondition2,$whenCondition1,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001898/0.1229, allocations: 146.8 kB / 369.1 MB, free: 2.379 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.101e-05/0.123, allocations: 27.67 kB / 369.1 MB, free: 2.352 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.233e-05/0.123, allocations: 30.16 kB / 369.1 MB, free: 2.32 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.1231, allocations: 4 kB / 369.1 MB, free: 2.316 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-06/0.1231, allocations: 0 / 369.1 MB, free: 2.316 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.1231, allocations: 0 / 369.1 MB, free: 2.316 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003638/0.1234, allocations: 313.5 kB / 369.5 MB, free: 1.961 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.1234, allocations: 0 / 369.5 MB, free: 1.961 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001666/0.1236, allocations: 43.92 kB / 369.5 MB, free: 1.918 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001822/0.1238, allocations: 56.77 kB / 369.5 MB, free: 1.859 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.735e-05/0.1238, allocations: 3.984 kB / 369.6 MB, free: 1.855 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001094/0.1249, allocations: 1.324 MB / 370.9 MB, free: 404 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1249, allocations: 256 / 370.9 MB, free: 404 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006182/0.1256, allocations: 336.2 kB / 371.2 MB, free: 52 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.2414/0.367, allocations: 117.8 kB / 371.3 MB, free: 19.34 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.922e-05/0.3672, allocations: 5.203 kB / 371.3 MB, free: 19.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002321/0.3674, allocations: 21.12 kB / 371.3 MB, free: 19.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001296/0.3675, allocations: 33.2 kB / 371.4 MB, free: 19.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.155e-05/0.3676, allocations: 7 kB / 371.4 MB, free: 19.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002014/0.3678, allocations: 160.8 kB / 371.5 MB, free: 19.26 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.212e-06/0.3678, allocations: 0 / 371.5 MB, free: 19.26 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005269/0.3683, allocations: 84.22 kB / 371.6 MB, free: 19.26 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009725/0.3693, allocations: 0.8722 MB / 372.5 MB, free: 18.67 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005889/0.3699, allocations: 278.3 kB / 372.8 MB, free: 18.56 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3699, allocations: 4.531 kB / 372.8 MB, free: 18.56 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002599/0.3702, allocations: 193 kB / 373 MB, free: 18.45 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002651/0.3704, allocations: 30.69 kB / 373 MB, free: 18.45 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003027/0.3735, allocations: 2.695 MB / 375.7 MB, free: 16.71 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002414/0.3737, allocations: 0.7699 MB / 376.5 MB, free: 16.02 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001132/0.3739, allocations: 23.61 kB / 376.5 MB, free: 16.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001754/0.374, allocations: 81.69 kB / 376.6 MB, free: 16.01 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3741, allocations: 1.062 kB / 376.6 MB, free: 16.01 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02013/0.3942, allocations: 4.935 MB / 381.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001977/0.3945, allocations: 208.9 kB / 381.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.042/2.437, allocations: 0 / 381.7 MB, free: 15.38 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat does not exist to compare? outputFormat=mat