Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001553/0.001558, allocations: 188.4 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.072/2.072, allocations: 205.4 MB / 222.5 MB, free: 13.86 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001166/0.001166, allocations: 106.8 kB / 270.9 MB, free: 13.38 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0003826/0.0003827, allocations: 15.98 kB / 327.1 MB, free: 15 MB / 234.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09605/0.09646, allocations: 47.57 MB / 374.6 MB, free: 15.35 MB / 282.8 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004131/0.1007, allocations: 2.493 MB / 377.1 MB, free: 12.84 MB / 282.8 MB Notification: Performance of NFInst.instExpressions: time 0.001718/0.1024, allocations: 0.7609 MB / 377.9 MB, free: 12.07 MB / 282.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001721/0.1026, allocations: 11.94 kB / 377.9 MB, free: 12.06 MB / 282.8 MB Notification: Performance of NFTyping.typeComponents: time 0.000101/0.1027, allocations: 39.67 kB / 377.9 MB, free: 12.02 MB / 282.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0003334/0.1031, allocations: 123.7 kB / 378.1 MB, free: 11.9 MB / 282.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003872/0.1035, allocations: 79.84 kB / 378.1 MB, free: 11.82 MB / 282.8 MB Notification: Performance of NFFlatten.flatten: time 0.0005219/0.104, allocations: 283.4 kB / 378.4 MB, free: 11.54 MB / 282.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002639/0.1043, allocations: 110.8 kB / 378.5 MB, free: 11.44 MB / 282.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000242/0.1046, allocations: 135.5 kB / 378.7 MB, free: 11.3 MB / 282.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002606/0.1048, allocations: 147.4 kB / 378.8 MB, free: 11.16 MB / 282.8 MB Notification: Performance of NFPackage.collectConstants: time 5.656e-05/0.1049, allocations: 24 kB / 378.8 MB, free: 11.14 MB / 282.8 MB Notification: Performance of NFFlatten.collectFunctions: time 7.629e-05/0.105, allocations: 16 kB / 378.8 MB, free: 11.12 MB / 282.8 MB Notification: Performance of NFScalarize.scalarize: time 8.781e-05/0.1051, allocations: 67.69 kB / 378.9 MB, free: 11.05 MB / 282.8 MB Notification: Performance of NFVerifyModel.verify: time 0.0001135/0.1052, allocations: 93.52 kB / 379 MB, free: 10.96 MB / 282.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0004255/0.1057, allocations: 299.4 kB / 379.3 MB, free: 10.66 MB / 282.8 MB Notification: Performance of FrontEnd - DAE generated: time 2.756e-06/0.1057, allocations: 4 kB / 379.3 MB, free: 10.66 MB / 282.8 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1057, allocations: 0 / 379.3 MB, free: 10.66 MB / 282.8 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.1057, allocations: 0 / 379.3 MB, free: 10.66 MB / 282.8 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.001394/0.1071, allocations: 0.5963 MB / 379.9 MB, free: 10.01 MB / 282.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/0.1072, allocations: 8.031 kB / 379.9 MB, free: 10 MB / 282.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001192/0.1073, allocations: 74.53 kB / 380 MB, free: 9.922 MB / 282.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001056/0.1074, allocations: 39.53 kB / 380 MB, free: 9.883 MB / 282.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004738/0.1079, allocations: 272 kB / 380.3 MB, free: 9.574 MB / 282.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001045/0.108, allocations: 84.05 kB / 380.4 MB, free: 9.48 MB / 282.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.387e-05/0.1081, allocations: 32 kB / 380.4 MB, free: 9.449 MB / 282.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008501/0.109, allocations: 330.7 kB / 380.7 MB, free: 9.109 MB / 282.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.679e-05/0.109, allocations: 4 kB / 380.7 MB, free: 9.105 MB / 282.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.919e-05/0.1091, allocations: 12 kB / 380.7 MB, free: 9.094 MB / 282.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.85e-05/0.1091, allocations: 8 kB / 380.7 MB, free: 9.086 MB / 282.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007064/0.1098, allocations: 226.4 kB / 381 MB, free: 8.863 MB / 282.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002965/0.1128, allocations: 1.383 MB / 382.3 MB, free: 7.379 MB / 282.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005197/0.1133, allocations: 178.5 kB / 382.5 MB, free: 7.195 MB / 282.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.357e-05/0.1134, allocations: 0 / 382.5 MB, free: 7.195 MB / 282.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004519/0.1138, allocations: 159.5 kB / 382.7 MB, free: 7.02 MB / 282.8 MB Notification: Performance of pre-optimization done (n=21): time 2.034e-06/0.1138, allocations: 4 kB / 382.7 MB, free: 7.016 MB / 282.8 MB Notification: Performance of matching and sorting (n=21): time 0.001765/0.1156, allocations: 416.8 kB / 383.1 MB, free: 6.582 MB / 282.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.832e-05/0.1157, allocations: 110.8 kB / 383.2 MB, free: 6.449 MB / 282.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003816/0.1161, allocations: 258.6 kB / 383.4 MB, free: 6.188 MB / 282.8 MB Notification: Performance of collectPreVariables (initialization): time 3.586e-05/0.1162, allocations: 29.7 kB / 383.5 MB, free: 6.152 MB / 282.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001935/0.1164, allocations: 266.3 kB / 383.7 MB, free: 5.891 MB / 282.8 MB Notification: Performance of collectInitialBindings (initialization): time 8.414e-05/0.1165, allocations: 63.02 kB / 383.8 MB, free: 5.828 MB / 282.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.42e-05/0.1165, allocations: 12 kB / 383.8 MB, free: 5.816 MB / 282.8 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.1167, allocations: 327.1 kB / 384.1 MB, free: 5.488 MB / 282.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002724/0.1169, allocations: 80.61 kB / 384.2 MB, free: 5.41 MB / 282.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003631/0.1173, allocations: 181.5 kB / 384.4 MB, free: 5.191 MB / 282.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000304/0.1176, allocations: 97.11 kB / 384.5 MB, free: 5.098 MB / 282.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.1177, allocations: 4 kB / 384.5 MB, free: 5.094 MB / 282.8 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001097/0.1188, allocations: 324.1 kB / 384.8 MB, free: 4.77 MB / 282.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.031e-05/0.1188, allocations: 4 kB / 384.8 MB, free: 4.766 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.225e-05/0.1188, allocations: 4 kB / 384.8 MB, free: 4.762 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003733/0.1192, allocations: 60.97 kB / 384.9 MB, free: 4.699 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004492/0.1197, allocations: 67.84 kB / 384.9 MB, free: 4.633 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001836/0.1215, allocations: 1.416 MB / 386.3 MB, free: 3.078 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004516/0.122, allocations: 55.77 kB / 386.4 MB, free: 3.023 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.794e-05/0.122, allocations: 15.98 kB / 386.4 MB, free: 3.008 MB / 282.8 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.0002339/0.1223, allocations: 149.7 kB / 386.6 MB, free: 2.852 MB / 282.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.615e-05/0.1224, allocations: 23.72 kB / 386.6 MB, free: 2.828 MB / 282.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.521e-05/0.1224, allocations: 34.17 kB / 386.6 MB, free: 2.797 MB / 282.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.671e-06/0.1225, allocations: 0 / 386.6 MB, free: 2.797 MB / 282.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.737e-06/0.1225, allocations: 11.89 kB / 386.6 MB, free: 2.785 MB / 282.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.1225, allocations: 4 kB / 386.6 MB, free: 2.781 MB / 282.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000498/0.123, allocations: 341.3 kB / 387 MB, free: 2.398 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.123, allocations: 0 / 387 MB, free: 2.398 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003446/0.1234, allocations: 39.92 kB / 387 MB, free: 2.359 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002972/0.1237, allocations: 56.81 kB / 387.1 MB, free: 2.301 MB / 282.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.867e-05/0.1237, allocations: 8 kB / 387.1 MB, free: 2.293 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00158/0.1253, allocations: 1.319 MB / 388.4 MB, free: 0.8398 MB / 282.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.1253, allocations: 3.953 kB / 388.4 MB, free: 0.8359 MB / 282.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001164/0.1265, allocations: 358.3 kB / 388.7 MB, free: 476 kB / 282.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001518/0.1267, allocations: 120.8 kB / 388.9 MB, free: 336 kB / 282.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.239e-05/0.1268, allocations: 8 kB / 388.9 MB, free: 328 kB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003127/0.1271, allocations: 19.98 kB / 388.9 MB, free: 308 kB / 282.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001297/0.1272, allocations: 39.95 kB / 388.9 MB, free: 268 kB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.844e-05/0.1273, allocations: 8 kB / 388.9 MB, free: 260 kB / 282.8 MB Notification: Performance of sorting global known variables: time 0.0002538/0.1275, allocations: 181.9 kB / 389.1 MB, free: 76 kB / 282.8 MB Notification: Performance of sort global known variables: time 3.6e-07/0.1275, allocations: 0 / 389.1 MB, free: 76 kB / 282.8 MB Notification: Performance of remove unused functions: time 0.2609/0.3884, allocations: 84.11 kB / 389.2 MB, free: 20.5 MB / 282.8 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.001653/0.3901, allocations: 0.8952 MB / 390.1 MB, free: 19.91 MB / 282.8 MB Notification: Performance of simCode: created initialization part: time 0.0009281/0.3911, allocations: 308 kB / 390.4 MB, free: 19.8 MB / 282.8 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.3911, allocations: 0 / 390.4 MB, free: 19.8 MB / 282.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0004623/0.3916, allocations: 203.2 kB / 390.6 MB, free: 19.69 MB / 282.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003591/0.392, allocations: 31.05 kB / 390.6 MB, free: 19.69 MB / 282.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004892/0.3969, allocations: 3.526 MB / 394.1 MB, free: 17.24 MB / 282.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002744/0.3972, allocations: 0.7794 MB / 394.9 MB, free: 16.54 MB / 282.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002084/0.3974, allocations: 98.23 kB / 395 MB, free: 16.54 MB / 282.8 MB Notification: Performance of SimCode: time 1.062e-06/0.3974, allocations: 0 / 395 MB, free: 16.54 MB / 282.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.696/3.093, allocations: 5.818 MB / 400.8 MB, free: 15.61 MB / 282.8 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat does not exist to compare? outputFormat=mat