Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.SwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc",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.00112/0.00112, allocations: 96.17 kB / 16.94 MB, free: 5.98 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.001003/0.001003, allocations: 183.7 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.407/1.407, 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.0004383/0.0004383, allocations: 12 kB / 280.8 MB, free: 3.648 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09479/0.09524, allocations: 47.58 MB / 328.4 MB, free: 4.004 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.002741/0.09802, allocations: 2.264 MB / 330.7 MB, free: 1.723 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001327/0.09939, allocations: 0.7648 MB / 331.5 MB, free: 0.9492 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001296/0.09953, allocations: 4 kB / 331.5 MB, free: 0.9453 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 6.409e-05/0.09961, allocations: 31.75 kB / 331.5 MB, free: 0.9141 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002224/0.09984, allocations: 111.7 kB / 331.6 MB, free: 0.8047 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003464/0.1002, allocations: 75.8 kB / 331.7 MB, free: 0.7305 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003081/0.1005, allocations: 263.3 kB / 331.9 MB, free: 484 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001923/0.1007, allocations: 90.33 kB / 332 MB, free: 396 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001309/0.1008, allocations: 111.6 kB / 332.1 MB, free: 284 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001768/0.101, allocations: 131.5 kB / 332.3 MB, free: 152 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.644e-05/0.1011, allocations: 16 kB / 332.3 MB, free: 136 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.058e-05/0.1011, allocations: 16 kB / 332.3 MB, free: 120 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.248e-05/0.1012, allocations: 51.77 kB / 332.3 MB, free: 68 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.533e-05/0.1013, allocations: 81.69 kB / 332.4 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002314/0.1015, allocations: 263.5 kB / 332.7 MB, free: 15.72 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.505e-06/0.1015, allocations: 0 / 332.7 MB, free: 15.72 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1015, allocations: 4 kB / 332.7 MB, free: 15.71 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.1015, allocations: 0 / 332.7 MB, free: 15.71 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0009168/0.1025, allocations: 0.5587 MB / 333.2 MB, free: 15.11 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/0.1025, allocations: 8.031 kB / 333.2 MB, free: 15.1 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.153e-05/0.1026, allocations: 70.53 kB / 333.3 MB, free: 15.02 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.763e-05/0.1027, allocations: 35.56 kB / 333.3 MB, free: 14.98 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003072/0.103, allocations: 255.2 kB / 333.6 MB, free: 14.7 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.017e-05/0.1031, allocations: 76.06 kB / 333.7 MB, free: 14.61 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.417e-05/0.1031, allocations: 31.91 kB / 333.7 MB, free: 14.58 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004934/0.1036, allocations: 297.7 kB / 334 MB, free: 14.27 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.1037, allocations: 0 / 334 MB, free: 14.27 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.075e-05/0.1037, allocations: 12 kB / 334 MB, free: 14.26 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/0.1037, allocations: 8 kB / 334 MB, free: 14.25 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000373/0.1041, allocations: 190.1 kB / 334.2 MB, free: 14.07 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001648/0.1058, allocations: 1.143 MB / 335.3 MB, free: 12.84 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000289/0.1061, allocations: 158.5 kB / 335.5 MB, free: 12.67 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.97e-05/0.1061, allocations: 4 kB / 335.5 MB, free: 12.67 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002904/0.1064, allocations: 151.9 kB / 335.6 MB, free: 12.5 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 2.875e-06/0.1064, allocations: 0 / 335.6 MB, free: 12.5 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.0009922/0.1074, allocations: 404.8 kB / 336 MB, free: 12.08 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.94e-05/0.1075, allocations: 110.8 kB / 336.2 MB, free: 11.95 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002242/0.1077, allocations: 224.9 kB / 336.4 MB, free: 11.72 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.763e-05/0.1078, allocations: 29.7 kB / 336.4 MB, free: 11.68 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001181/0.1079, allocations: 176.2 kB / 336.6 MB, free: 11.51 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.828e-05/0.1079, allocations: 67.09 kB / 336.6 MB, free: 11.44 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.649e-05/0.108, allocations: 12 kB / 336.6 MB, free: 11.43 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.1081, allocations: 334.8 kB / 337 MB, free: 11.09 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001126/0.1082, allocations: 59.97 kB / 337 MB, free: 11.04 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001651/0.1084, allocations: 140.6 kB / 337.2 MB, free: 10.87 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001378/0.1085, allocations: 85.12 kB / 337.3 MB, free: 10.79 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.1086, allocations: 0 / 337.3 MB, free: 10.79 MB / 286.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004095/0.109, allocations: 276 kB / 337.5 MB, free: 10.51 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.109, allocations: 4 kB / 337.5 MB, free: 10.5 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.327e-06/0.109, allocations: 7.953 kB / 337.5 MB, free: 10.5 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000252/0.1093, allocations: 56.81 kB / 337.6 MB, free: 10.44 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002052/0.1095, allocations: 60 kB / 337.6 MB, free: 10.38 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001212/0.1107, allocations: 1.404 MB / 339.1 MB, free: 8.844 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002171/0.1109, allocations: 43.77 kB / 339.1 MB, free: 8.801 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.024e-05/0.111, allocations: 8 kB / 339.1 MB, free: 8.793 MB / 286.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.0001517/0.1111, allocations: 161.8 kB / 339.3 MB, free: 8.625 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.036e-05/0.1112, allocations: 27.7 kB / 339.3 MB, free: 8.598 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.498e-05/0.1112, allocations: 26.17 kB / 339.3 MB, free: 8.574 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.1112, allocations: 0 / 339.3 MB, free: 8.574 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.564e-06/0.1112, allocations: 4 kB / 339.3 MB, free: 8.57 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.1113, allocations: 3.984 kB / 339.3 MB, free: 8.566 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003014/0.1116, allocations: 309.5 kB / 339.6 MB, free: 8.215 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.1116, allocations: 3.953 kB / 339.6 MB, free: 8.211 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000162/0.1117, allocations: 35.92 kB / 339.7 MB, free: 8.176 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001776/0.1119, allocations: 56.81 kB / 339.7 MB, free: 8.117 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.646e-05/0.112, allocations: 4 kB / 339.7 MB, free: 8.113 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001095/0.1131, allocations: 1.327 MB / 341.1 MB, free: 6.648 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.1131, allocations: 0 / 341.1 MB, free: 6.648 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005795/0.1137, allocations: 342.4 kB / 341.4 MB, free: 6.293 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001065/0.1138, allocations: 112.8 kB / 341.5 MB, free: 6.164 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.602e-05/0.1138, allocations: 7.984 kB / 341.5 MB, free: 6.156 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001632/0.114, allocations: 19.98 kB / 341.5 MB, free: 6.137 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.987e-05/0.1141, allocations: 35.95 kB / 341.6 MB, free: 6.102 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.511e-05/0.1141, allocations: 7.984 kB / 341.6 MB, free: 6.094 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001531/0.1143, allocations: 156.5 kB / 341.7 MB, free: 5.941 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1143, allocations: 4 kB / 341.7 MB, free: 5.938 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003422/0.1146, allocations: 75.84 kB / 341.8 MB, free: 5.863 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: 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.0009239/0.1156, allocations: 0.8706 MB / 342.7 MB, free: 4.961 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005016/0.1161, allocations: 290.5 kB / 343 MB, free: 4.664 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.1161, allocations: 0.5 kB / 343 MB, free: 4.664 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002626/0.1164, allocations: 190.6 kB / 343.1 MB, free: 4.465 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002556/0.1166, allocations: 36.36 kB / 343.2 MB, free: 4.426 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003019/0.1197, allocations: 2.692 MB / 345.9 MB, free: 1.648 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003665/0.12, allocations: 0.7635 MB / 346.6 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001107/0.1202, allocations: 26.28 kB / 346.7 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001126/0.1203, allocations: 83.41 kB / 346.7 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of SimCode: time 9.62e-07/0.1203, allocations: 0 / 346.7 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01826/0.1386, allocations: 4.94 MB / 351.7 MB, free: 11.82 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000234/0.1388, allocations: 211.7 kB / 351.9 MB, free: 11.58 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.856/1.995, allocations: 0 / 351.9 MB, free: 11.58 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat does not exist to compare? outputFormat=mat