Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_0_0_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.0009693/0.0009692, allocations: 89.95 kB / 16.31 MB, free: 6.414 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.001122/0.001122, allocations: 179.9 kB / 17.21 MB, free: 6.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 223.2 MB / 241.2 MB, free: 14.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002944/0.0002945, allocations: 8.781 kB / 300.9 MB, free: 6.094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1137, allocations: 50.42 MB / 351.3 MB, free: 3.672 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003394/0.1172, allocations: 2.675 MB / 354 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00132/0.1185, allocations: 0.717 MB / 354.7 MB, free: 264 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001504/0.1187, allocations: 8 kB / 354.7 MB, free: 256 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001472/0.1188, allocations: 39.69 kB / 354.8 MB, free: 216 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000156/0.119, allocations: 95.17 kB / 354.9 MB, free: 120 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000322/0.1193, allocations: 79.91 kB / 354.9 MB, free: 40 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003575/0.1197, allocations: 378.4 kB / 355.3 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002104/0.1199, allocations: 107 kB / 355.4 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001782/0.1201, allocations: 135.5 kB / 355.6 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002046/0.1203, allocations: 147.3 kB / 355.7 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.88e-05/0.1204, allocations: 20 kB / 355.7 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.682e-05/0.1204, allocations: 20 kB / 355.7 MB, free: 15.24 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.051e-05/0.1205, allocations: 59.75 kB / 355.8 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.202e-05/0.1206, allocations: 89.52 kB / 355.9 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003146/0.1209, allocations: 307.4 kB / 356.2 MB, free: 14.79 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.1209, allocations: 0 / 356.2 MB, free: 14.79 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.1209, allocations: 0 / 356.2 MB, free: 14.79 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.463e-06/0.1209, allocations: 4 kB / 356.2 MB, free: 14.78 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.0009788/0.1219, allocations: 0.6002 MB / 356.8 MB, free: 14.13 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.713e-05/0.122, allocations: 8.031 kB / 356.8 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.944e-05/0.1221, allocations: 70.53 kB / 356.9 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.94e-05/0.1222, allocations: 39.53 kB / 356.9 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003581/0.1225, allocations: 276 kB / 357.2 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.633e-05/0.1226, allocations: 80.06 kB / 357.3 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.995e-05/0.1227, allocations: 28 kB / 357.3 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005657/0.1232, allocations: 342.7 kB / 357.6 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.1233, allocations: 0 / 357.6 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.308e-05/0.1233, allocations: 16 kB / 357.6 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.1233, allocations: 8 kB / 357.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004134/0.1237, allocations: 218.5 kB / 357.9 MB, free: 12.98 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001948/0.1257, allocations: 1.395 MB / 359.2 MB, free: 11.49 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003336/0.1261, allocations: 166.6 kB / 359.4 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001652/0.1262, allocations: 92.81 kB / 359.5 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.311e-05/0.1263, allocations: 352 / 359.5 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00036/0.1266, allocations: 170.5 kB / 359.7 MB, free: 11.04 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.493e-06/0.1266, allocations: 3.938 kB / 359.7 MB, free: 11.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001086/0.1277, allocations: 416.8 kB / 360.1 MB, free: 10.61 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.219e-05/0.1278, allocations: 110.8 kB / 360.2 MB, free: 10.47 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000261/0.1281, allocations: 258.6 kB / 360.4 MB, free: 10.22 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.651e-05/0.1281, allocations: 33.7 kB / 360.5 MB, free: 10.18 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001408/0.1283, allocations: 203.9 kB / 360.7 MB, free: 9.977 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.187e-05/0.1283, allocations: 75 kB / 360.7 MB, free: 9.902 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.317e-05/0.1284, allocations: 4 kB / 360.7 MB, free: 9.898 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.1285, allocations: 334.8 kB / 361.1 MB, free: 9.562 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001711/0.1287, allocations: 84.62 kB / 361.2 MB, free: 9.48 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002388/0.1289, allocations: 169.5 kB / 361.3 MB, free: 9.27 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001912/0.1291, allocations: 106 kB / 361.4 MB, free: 9.168 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.1291, allocations: 0 / 361.4 MB, free: 9.168 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006713/0.1298, allocations: 348.7 kB / 361.8 MB, free: 8.82 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.182e-05/0.1299, allocations: 10.97 kB / 361.8 MB, free: 8.812 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.1299, allocations: 0 / 361.8 MB, free: 8.812 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002625/0.1301, allocations: 60.81 kB / 361.8 MB, free: 8.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002545/0.1304, allocations: 64 kB / 361.9 MB, free: 8.688 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001372/0.1318, allocations: 1.405 MB / 363.3 MB, free: 7.152 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002534/0.132, allocations: 55.55 kB / 363.4 MB, free: 7.098 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.858e-05/0.1321, allocations: 16 kB / 363.4 MB, free: 7.082 MB / 302.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.0001787/0.1323, allocations: 157.8 kB / 363.5 MB, free: 6.918 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.801e-05/0.1323, allocations: 23.72 kB / 363.6 MB, free: 6.895 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.867e-05/0.1324, allocations: 34.17 kB / 363.6 MB, free: 6.855 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.1324, allocations: 0 / 363.6 MB, free: 6.855 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.1324, allocations: 0 / 363.6 MB, free: 6.855 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.922e-06/0.1324, allocations: 3.984 kB / 363.6 MB, free: 6.852 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003506/0.1328, allocations: 345.2 kB / 363.9 MB, free: 6.465 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1328, allocations: 0 / 363.9 MB, free: 6.465 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001951/0.133, allocations: 39.97 kB / 364 MB, free: 6.426 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001817/0.1332, allocations: 60.75 kB / 364 MB, free: 6.363 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.645e-05/0.1332, allocations: 0 / 364 MB, free: 6.363 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00118/0.1344, allocations: 1.319 MB / 365.3 MB, free: 4.914 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.1344, allocations: 0 / 365.3 MB, free: 4.914 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007256/0.1351, allocations: 363.2 kB / 365.7 MB, free: 4.539 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001317/0.1353, allocations: 120.8 kB / 365.8 MB, free: 4.402 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.74e-05/0.1353, allocations: 8 kB / 365.8 MB, free: 4.395 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001637/0.1356, allocations: 24.05 kB / 365.8 MB, free: 4.371 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000124/0.1357, allocations: 31.94 kB / 365.9 MB, free: 4.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.131e-05/0.1358, allocations: 8 kB / 365.9 MB, free: 4.332 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002685/0.136, allocations: 182 kB / 366.1 MB, free: 4.156 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.136, allocations: 0 / 366.1 MB, free: 4.156 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004202/0.1365, allocations: 91.69 kB / 366.2 MB, free: 4.066 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: 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.001138/0.1376, allocations: 0.9 MB / 367.1 MB, free: 3.133 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006703/0.1383, allocations: 314.4 kB / 367.4 MB, free: 2.812 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1383, allocations: 0.75 kB / 367.4 MB, free: 2.812 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003087/0.1386, allocations: 202.6 kB / 367.6 MB, free: 2.602 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003142/0.139, allocations: 31.3 kB / 367.6 MB, free: 2.574 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003234/0.1422, allocations: 1.84 MB / 369.4 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2397/0.3819, allocations: 0.7649 MB / 370.2 MB, free: 23.79 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002244/0.3822, allocations: 27.91 kB / 370.2 MB, free: 23.78 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00022/0.3824, allocations: 96.31 kB / 370.3 MB, free: 23.77 MB / 302.1 MB Notification: Performance of SimCode: time 1.824e-06/0.3824, allocations: 0 / 370.3 MB, free: 23.77 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02319/0.4056, allocations: 5.305 MB / 375.6 MB, free: 23.47 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002003/0.4059, allocations: 229 kB / 375.8 MB, free: 23.23 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.947/2.353, allocations: 3.938 kB / 375.8 MB, free: 23.22 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat does not exist to compare? outputFormat=mat