Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",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.001085/0.001086, allocations: 98.83 kB / 16.94 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.001258/0.001258, allocations: 175.6 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.432/1.432, allocations: 205.4 MB / 224 MB, free: 13.18 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.0004972/0.0004974, allocations: 12 kB / 280.8 MB, free: 3.664 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09604/0.09655, allocations: 47.58 MB / 328.4 MB, free: 4.02 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.002785/0.09938, allocations: 2.494 MB / 330.9 MB, free: 1.508 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001015/0.1004, allocations: 0.7725 MB / 331.7 MB, free: 0.7266 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001144/0.1005, allocations: 8 kB / 331.7 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 8.833e-05/0.1006, allocations: 43.67 kB / 331.7 MB, free: 0.6758 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001948/0.1008, allocations: 123.7 kB / 331.9 MB, free: 0.5547 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00026/0.1011, allocations: 79.84 kB / 331.9 MB, free: 488 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003171/0.1014, allocations: 291.3 kB / 332.2 MB, free: 196 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001916/0.1016, allocations: 110.8 kB / 332.3 MB, free: 88 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001757/0.1018, allocations: 123.6 kB / 332.4 MB, free: 15.96 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001884/0.102, allocations: 151.4 kB / 332.6 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.556e-05/0.1021, allocations: 16 kB / 332.6 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.549e-05/0.1021, allocations: 24 kB / 332.6 MB, free: 15.78 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.742e-05/0.1022, allocations: 63.75 kB / 332.7 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.44e-05/0.1023, allocations: 89.5 kB / 332.8 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002697/0.1025, allocations: 299.4 kB / 333.1 MB, free: 15.33 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.1026, allocations: 0 / 333.1 MB, free: 15.33 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1026, allocations: 0 / 333.1 MB, free: 15.33 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.032e-06/0.1026, allocations: 0 / 333.1 MB, free: 15.33 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.0009036/0.1035, allocations: 0.6002 MB / 333.7 MB, free: 14.68 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.1035, allocations: 8.031 kB / 333.7 MB, free: 14.67 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.124e-05/0.1036, allocations: 70.53 kB / 333.8 MB, free: 14.59 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.255e-05/0.1037, allocations: 43.53 kB / 333.8 MB, free: 14.55 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003277/0.104, allocations: 280 kB / 334.1 MB, free: 14.23 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.134e-05/0.1041, allocations: 80.06 kB / 334.1 MB, free: 14.14 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.73e-05/0.1042, allocations: 31.98 kB / 334.2 MB, free: 14.11 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005255/0.1047, allocations: 326.8 kB / 334.5 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.1047, allocations: 0 / 334.5 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.278e-05/0.1048, allocations: 20 kB / 334.5 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.1048, allocations: 11.94 kB / 334.5 MB, free: 13.74 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004092/0.1052, allocations: 218.5 kB / 334.7 MB, free: 13.53 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001821/0.107, allocations: 1.387 MB / 336.1 MB, free: 12.04 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003132/0.1074, allocations: 178.5 kB / 336.3 MB, free: 11.86 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.579e-05/0.1074, allocations: 0 / 336.3 MB, free: 11.86 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002922/0.1077, allocations: 163.6 kB / 336.5 MB, free: 11.68 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.203e-06/0.1077, allocations: 0 / 336.5 MB, free: 11.68 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.00109/0.1088, allocations: 420.8 kB / 336.9 MB, free: 11.24 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.837e-05/0.1089, allocations: 110.8 kB / 337 MB, free: 11.11 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002497/0.1091, allocations: 262.6 kB / 337.2 MB, free: 10.84 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.253e-05/0.1092, allocations: 25.7 kB / 337.3 MB, free: 10.81 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001392/0.1093, allocations: 207.9 kB / 337.5 MB, free: 10.6 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.745e-05/0.1094, allocations: 66.95 kB / 337.5 MB, free: 10.54 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.512e-05/0.1094, allocations: 8 kB / 337.5 MB, free: 10.53 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.1096, allocations: 343.1 kB / 337.9 MB, free: 10.18 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001541/0.1097, allocations: 80.61 kB / 338 MB, free: 10.11 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002169/0.1099, allocations: 177.5 kB / 338.1 MB, free: 9.891 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001672/0.1101, allocations: 97.11 kB / 338.2 MB, free: 9.797 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.1101, allocations: 0 / 338.2 MB, free: 9.797 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006434/0.1108, allocations: 344 kB / 338.6 MB, free: 9.453 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.1108, allocations: 8 kB / 338.6 MB, free: 9.445 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.1108, allocations: 0 / 338.6 MB, free: 9.445 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002507/0.1111, allocations: 60.97 kB / 338.6 MB, free: 9.383 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002544/0.1113, allocations: 67.84 kB / 338.7 MB, free: 9.316 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001355/0.1127, allocations: 1.412 MB / 340.1 MB, free: 7.77 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002542/0.113, allocations: 47.86 kB / 340.2 MB, free: 7.723 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.459e-05/0.113, allocations: 16 kB / 340.2 MB, free: 7.707 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,switch1.off,$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 (38): * Single equations (assignments): 37 * 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.0001802/0.1132, allocations: 153.7 kB / 340.3 MB, free: 7.547 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.005e-05/0.1132, allocations: 31.62 kB / 340.3 MB, free: 7.516 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.823e-05/0.1133, allocations: 26.17 kB / 340.4 MB, free: 7.492 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.798e-06/0.1133, allocations: 7.938 kB / 340.4 MB, free: 7.484 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.1133, allocations: 3.953 kB / 340.4 MB, free: 7.48 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.1133, allocations: 0 / 340.4 MB, free: 7.48 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003703/0.1137, allocations: 341.4 kB / 340.7 MB, free: 7.098 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.1137, allocations: 4 kB / 340.7 MB, free: 7.094 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00021/0.1139, allocations: 35.92 kB / 340.8 MB, free: 7.059 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001753/0.1141, allocations: 48.81 kB / 340.8 MB, free: 7.008 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.031e-05/0.1141, allocations: 8 kB / 340.8 MB, free: 7 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001066/0.1152, allocations: 1.335 MB / 342.1 MB, free: 5.531 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-05/0.1152, allocations: 3.953 kB / 342.2 MB, free: 5.527 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006647/0.1159, allocations: 358.2 kB / 342.5 MB, free: 5.156 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001406/0.1161, allocations: 116.8 kB / 342.6 MB, free: 5.023 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.843e-05/0.1161, allocations: 11.94 kB / 342.6 MB, free: 5.012 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001686/0.1163, allocations: 19.98 kB / 342.6 MB, free: 4.992 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.875e-05/0.1164, allocations: 31.91 kB / 342.7 MB, free: 4.961 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.552e-05/0.1164, allocations: 7.984 kB / 342.7 MB, free: 4.953 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001684/0.1166, allocations: 186 kB / 342.9 MB, free: 4.77 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1166, allocations: 0 / 342.9 MB, free: 4.77 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000364/0.117, allocations: 87.84 kB / 343 MB, free: 4.684 MB / 286.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: 5 ($whenCondition1,switch1.off,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): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0009614/0.1179, allocations: 0.89 MB / 343.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005264/0.1185, allocations: 318.8 kB / 344.2 MB, free: 3.438 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.1185, allocations: 0 / 344.2 MB, free: 3.438 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002863/0.1188, allocations: 198.6 kB / 344.3 MB, free: 3.23 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002072/0.119, allocations: 32.5 kB / 344.4 MB, free: 3.199 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003678/0.1227, allocations: 3.496 MB / 347.9 MB, free: 15.61 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003846/0.1231, allocations: 0.7791 MB / 348.7 MB, free: 14.8 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001184/0.1232, allocations: 30.27 kB / 348.7 MB, free: 14.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001333/0.1233, allocations: 99.41 kB / 348.8 MB, free: 14.68 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1233, allocations: 3.938 kB / 348.8 MB, free: 14.67 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01712/0.1405, allocations: 5.283 MB / 354.1 MB, free: 9.395 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002494/0.1408, allocations: 223.1 kB / 354.3 MB, free: 9.152 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.759/1.9, allocations: 0 / 354.3 MB, free: 9.152 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat does not exist to compare? outputFormat=mat