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.001028/0.001028, allocations: 99.55 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001392/0.001392, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.55/1.55, allocations: 227.4 MB / 246 MB, free: 11.97 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002331/0.0002331, allocations: 11.98 kB / 306.8 MB, free: 1.449 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1219, allocations: 51.49 MB / 358.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.002934/0.1249, allocations: 2.451 MB / 360.8 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001537/0.1265, allocations: 0.7326 MB / 361.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001629/0.1267, allocations: 4 kB / 361.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001711/0.1268, allocations: 43.69 kB / 361.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001676/0.127, allocations: 71.38 kB / 361.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003697/0.1274, allocations: 83.86 kB / 361.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003527/0.1277, allocations: 338.5 kB / 362 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001926/0.1279, allocations: 90.33 kB / 362.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001193/0.1281, allocations: 115.6 kB / 362.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001673/0.1282, allocations: 127.5 kB / 362.4 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.771e-05/0.1283, allocations: 16 kB / 362.4 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.699e-05/0.1283, allocations: 16 kB / 362.4 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.494e-05/0.1284, allocations: 59.75 kB / 362.4 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.98e-05/0.1285, allocations: 85.5 kB / 362.5 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002284/0.1287, allocations: 259.5 kB / 362.8 MB, free: 9.457 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.1287, allocations: 4 kB / 362.8 MB, free: 9.453 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.886e-06/0.1287, allocations: 0 / 362.8 MB, free: 9.453 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.029e-06/0.1288, allocations: 3.938 kB / 362.8 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.0008787/0.1296, allocations: 0.5627 MB / 363.3 MB, free: 8.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.067e-05/0.1297, allocations: 8.031 kB / 363.4 MB, free: 8.832 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.745e-05/0.1298, allocations: 62.53 kB / 363.4 MB, free: 8.762 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.82e-05/0.1299, allocations: 35.62 kB / 363.5 MB, free: 8.727 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003004/0.1302, allocations: 263 kB / 363.7 MB, free: 8.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.634e-05/0.1303, allocations: 84 kB / 363.8 MB, free: 8.336 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.576e-05/0.1303, allocations: 28 kB / 363.8 MB, free: 8.309 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000478/0.1308, allocations: 293.8 kB / 364.1 MB, free: 8.012 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.1308, allocations: 0 / 364.1 MB, free: 8.012 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.266e-05/0.1309, allocations: 15.97 kB / 364.1 MB, free: 7.996 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.14e-05/0.1309, allocations: 8 kB / 364.1 MB, free: 7.988 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003279/0.1312, allocations: 190.1 kB / 364.3 MB, free: 7.801 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001679/0.1329, allocations: 1.139 MB / 365.5 MB, free: 6.578 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003009/0.1332, allocations: 162 kB / 365.6 MB, free: 6.414 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000135/0.1334, allocations: 72.84 kB / 365.7 MB, free: 6.34 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.478e-05/0.1334, allocations: 8 kB / 365.7 MB, free: 6.332 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002933/0.1337, allocations: 158.9 kB / 365.8 MB, free: 6.16 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.803e-06/0.1337, allocations: 0 / 365.8 MB, free: 6.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.0009683/0.1347, allocations: 400.9 kB / 366.2 MB, free: 5.742 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.715e-05/0.1348, allocations: 106.8 kB / 366.3 MB, free: 5.613 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002212/0.135, allocations: 221 kB / 366.6 MB, free: 5.387 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.603e-05/0.135, allocations: 33.7 kB / 366.6 MB, free: 5.348 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001125/0.1351, allocations: 180.2 kB / 366.8 MB, free: 5.168 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.933e-05/0.1352, allocations: 63.09 kB / 366.8 MB, free: 5.105 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.221e-05/0.1352, allocations: 8 kB / 366.8 MB, free: 5.098 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.1353, allocations: 334.8 kB / 367.2 MB, free: 4.762 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001235/0.1355, allocations: 67.97 kB / 367.2 MB, free: 4.695 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001751/0.1356, allocations: 140.7 kB / 367.4 MB, free: 4.523 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001493/0.1358, allocations: 77.19 kB / 367.4 MB, free: 4.449 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1358, allocations: 0 / 367.4 MB, free: 4.449 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004009/0.1362, allocations: 282.5 kB / 367.7 MB, free: 4.168 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/0.1362, allocations: 11.95 kB / 367.7 MB, free: 4.156 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.052e-06/0.1363, allocations: 0 / 367.7 MB, free: 4.156 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002519/0.1365, allocations: 57.03 kB / 367.8 MB, free: 4.098 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002078/0.1367, allocations: 55.86 kB / 367.8 MB, free: 4.043 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001173/0.1379, allocations: 1.404 MB / 369.2 MB, free: 2.508 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000214/0.1381, allocations: 51.69 kB / 369.3 MB, free: 2.457 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.064e-05/0.1382, allocations: 8 kB / 369.3 MB, free: 2.449 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.000143/0.1383, allocations: 158.9 kB / 369.5 MB, free: 2.285 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.348e-05/0.1384, allocations: 27.7 kB / 369.5 MB, free: 2.258 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.943e-05/0.1384, allocations: 22.19 kB / 369.5 MB, free: 2.234 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.1384, allocations: 0 / 369.5 MB, free: 2.234 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.994e-06/0.1384, allocations: 0 / 369.5 MB, free: 2.234 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.1384, allocations: 7.984 kB / 369.5 MB, free: 2.227 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003/0.1387, allocations: 313.4 kB / 369.8 MB, free: 1.871 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.1388, allocations: 0 / 369.8 MB, free: 1.871 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001618/0.1389, allocations: 35.92 kB / 369.9 MB, free: 1.836 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001734/0.1391, allocations: 56.81 kB / 369.9 MB, free: 1.777 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.013e-05/0.1391, allocations: 4 kB / 369.9 MB, free: 1.773 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001033/0.1402, allocations: 1.32 MB / 371.2 MB, free: 324 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1402, allocations: 0 / 371.2 MB, free: 324 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2649/0.4051, allocations: 332.6 kB / 371.6 MB, free: 19.47 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002644/0.4055, allocations: 115.7 kB / 371.7 MB, free: 19.38 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.966e-05/0.4055, allocations: 6.766 kB / 371.7 MB, free: 19.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000274/0.4058, allocations: 20.86 kB / 371.7 MB, free: 19.38 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001471/0.406, allocations: 32 kB / 371.7 MB, free: 19.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.239e-05/0.406, allocations: 7.844 kB / 371.7 MB, free: 19.38 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002056/0.4062, allocations: 160.6 kB / 371.9 MB, free: 19.3 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4062, allocations: 0.5 kB / 371.9 MB, free: 19.3 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005572/0.4068, allocations: 78.81 kB / 372 MB, free: 19.3 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.001176/0.408, allocations: 0.8705 MB / 372.8 MB, free: 18.7 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006749/0.4087, allocations: 288.6 kB / 373.1 MB, free: 18.6 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.4087, allocations: 1.281 kB / 373.1 MB, free: 18.6 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000307/0.409, allocations: 189.6 kB / 373.3 MB, free: 18.49 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003776/0.4094, allocations: 42.28 kB / 373.4 MB, free: 18.49 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003336/0.4127, allocations: 1.639 MB / 375 MB, free: 17.8 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003233/0.4131, allocations: 0.761 MB / 375.8 MB, free: 17.1 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001532/0.4132, allocations: 24.78 kB / 375.8 MB, free: 17.1 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002313/0.4135, allocations: 81.5 kB / 375.9 MB, free: 17.09 MB / 302.1 MB Notification: Performance of SimCode: time 1.432e-06/0.4135, allocations: 0 / 375.9 MB, free: 17.09 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02297/0.4364, allocations: 4.96 MB / 380.8 MB, free: 16.69 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000215/0.4367, allocations: 214.6 kB / 381 MB, free: 16.45 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.103/2.54, allocations: 3.938 kB / 381 MB, free: 16.45 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