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.001104/0.001105, allocations: 100.3 kB / 16.95 MB, free: 6.453 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.001364/0.001364, allocations: 183.4 kB / 17.84 MB, free: 6.004 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.786/1.786, allocations: 205.4 MB / 224 MB, free: 13.14 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.0004877/0.0004877, allocations: 12 kB / 280.9 MB, free: 3.617 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1142, allocations: 47.57 MB / 328.4 MB, free: 3.977 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003347/0.1176, allocations: 2.404 MB / 330.8 MB, free: 1.555 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001302/0.119, allocations: 0.7374 MB / 331.6 MB, free: 0.8086 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001489/0.1191, allocations: 8 kB / 331.6 MB, free: 0.8008 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001422/0.1193, allocations: 35.69 kB / 331.6 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001551/0.1194, allocations: 71.38 kB / 331.7 MB, free: 0.6953 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003342/0.1198, allocations: 79.92 kB / 331.8 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004325/0.1202, allocations: 342.4 kB / 332.1 MB, free: 288 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002367/0.1205, allocations: 86.34 kB / 332.2 MB, free: 204 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001592/0.1206, allocations: 119.5 kB / 332.3 MB, free: 84 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002104/0.1209, allocations: 131.5 kB / 332.4 MB, free: 15.95 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.883e-05/0.1209, allocations: 16 kB / 332.5 MB, free: 15.94 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.123e-05/0.121, allocations: 16 kB / 332.5 MB, free: 15.92 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.957e-05/0.121, allocations: 55.77 kB / 332.5 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.351e-05/0.1211, allocations: 77.58 kB / 332.6 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002886/0.1214, allocations: 263.5 kB / 332.9 MB, free: 15.53 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.114e-06/0.1214, allocations: 0 / 332.9 MB, free: 15.53 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.1214, allocations: 0 / 332.9 MB, free: 15.53 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.358e-06/0.1215, allocations: 0 / 332.9 MB, free: 15.53 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.0009901/0.1225, allocations: 0.5627 MB / 333.4 MB, free: 14.91 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.1225, allocations: 8.031 kB / 333.4 MB, free: 14.91 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.047e-05/0.1226, allocations: 66.53 kB / 333.5 MB, free: 14.83 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.986e-05/0.1227, allocations: 35.62 kB / 333.5 MB, free: 14.8 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003524/0.123, allocations: 271.1 kB / 333.8 MB, free: 14.49 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.16e-05/0.1231, allocations: 72.06 kB / 333.9 MB, free: 14.41 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.474e-05/0.1232, allocations: 39.91 kB / 333.9 MB, free: 14.37 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004483/0.1236, allocations: 297.7 kB / 334.2 MB, free: 14.07 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.1236, allocations: 0 / 334.2 MB, free: 14.07 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.734e-05/0.1237, allocations: 12 kB / 334.2 MB, free: 14.05 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.002e-05/0.1237, allocations: 4 kB / 334.2 MB, free: 14.05 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003254/0.124, allocations: 194 kB / 334.4 MB, free: 13.86 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001646/0.1257, allocations: 1.143 MB / 335.5 MB, free: 12.63 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003007/0.126, allocations: 158.5 kB / 335.7 MB, free: 12.46 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001432/0.1262, allocations: 88.8 kB / 335.8 MB, free: 12.38 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.778e-05/0.1262, allocations: 4 kB / 335.8 MB, free: 12.37 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003181/0.1265, allocations: 151.9 kB / 335.9 MB, free: 12.2 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.523e-06/0.1265, allocations: 0 / 335.9 MB, free: 12.2 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001003/0.1275, allocations: 393.1 kB / 336.3 MB, free: 11.79 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.507e-05/0.1276, allocations: 106.8 kB / 336.4 MB, free: 11.66 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002308/0.1279, allocations: 232.9 kB / 336.7 MB, free: 11.43 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.718e-05/0.1279, allocations: 33.7 kB / 336.7 MB, free: 11.39 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001316/0.128, allocations: 172.2 kB / 336.9 MB, free: 11.21 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.078e-05/0.1281, allocations: 75.08 kB / 336.9 MB, free: 11.14 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.242e-05/0.1281, allocations: 4 kB / 336.9 MB, free: 11.14 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.1283, allocations: 330.8 kB / 337.3 MB, free: 10.8 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001255/0.1284, allocations: 67.97 kB / 337.3 MB, free: 10.74 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000195/0.1286, allocations: 140.7 kB / 337.5 MB, free: 10.57 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001366/0.1288, allocations: 81.08 kB / 337.5 MB, free: 10.49 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.1288, allocations: 8.031 kB / 337.5 MB, free: 10.48 MB / 286.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004467/0.1292, allocations: 267.8 kB / 337.8 MB, free: 10.21 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.265e-05/0.1293, allocations: 8 kB / 337.8 MB, free: 10.21 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.1293, allocations: 0 / 337.8 MB, free: 10.21 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002764/0.1296, allocations: 61.03 kB / 337.9 MB, free: 10.14 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002279/0.1298, allocations: 51.86 kB / 337.9 MB, free: 10.09 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001457/0.1313, allocations: 1.404 MB / 339.3 MB, free: 8.559 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002008/0.1315, allocations: 39.77 kB / 339.4 MB, free: 8.52 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.468e-05/0.1315, allocations: 20.08 kB / 339.4 MB, free: 8.5 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.0001704/0.1317, allocations: 153.7 kB / 339.5 MB, free: 8.34 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.578e-05/0.1318, allocations: 27.7 kB / 339.6 MB, free: 8.312 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.108e-05/0.1318, allocations: 26.17 kB / 339.6 MB, free: 8.289 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.1318, allocations: 0 / 339.6 MB, free: 8.289 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.365e-06/0.1318, allocations: 4 kB / 339.6 MB, free: 8.285 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-06/0.1318, allocations: 0 / 339.6 MB, free: 8.285 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000389/0.1322, allocations: 317.4 kB / 339.9 MB, free: 7.926 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.1322, allocations: 4 kB / 339.9 MB, free: 7.922 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001584/0.1324, allocations: 31.92 kB / 339.9 MB, free: 7.891 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001749/0.1326, allocations: 56.81 kB / 340 MB, free: 7.832 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.149e-05/0.1326, allocations: 7.984 kB / 340 MB, free: 7.824 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001197/0.1338, allocations: 1.315 MB / 341.3 MB, free: 6.371 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.1338, allocations: 4.156 kB / 341.3 MB, free: 6.367 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006038/0.1345, allocations: 334.2 kB / 341.6 MB, free: 6.02 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000106/0.1346, allocations: 116.7 kB / 341.8 MB, free: 5.887 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.584e-05/0.1346, allocations: 8 kB / 341.8 MB, free: 5.879 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001583/0.1348, allocations: 24.05 kB / 341.8 MB, free: 5.855 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.665e-05/0.1349, allocations: 31.94 kB / 341.8 MB, free: 5.824 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.293e-05/0.1349, allocations: 4 kB / 341.8 MB, free: 5.82 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001382/0.135, allocations: 164.5 kB / 342 MB, free: 5.66 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.645e-06/0.1351, allocations: 0 / 342 MB, free: 5.66 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003532/0.1354, allocations: 79.78 kB / 342.1 MB, free: 5.582 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.001048/0.1365, allocations: 0.8784 MB / 342.9 MB, free: 4.672 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005225/0.137, allocations: 282.5 kB / 343.2 MB, free: 4.383 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.137, allocations: 0 / 343.2 MB, free: 4.383 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002642/0.1373, allocations: 190.6 kB / 343.4 MB, free: 4.184 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003306/0.1376, allocations: 40.34 kB / 343.4 MB, free: 4.141 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002726/0.1404, allocations: 1.647 MB / 345.1 MB, free: 2.422 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003367/0.1407, allocations: 0.7635 MB / 345.9 MB, free: 1.633 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001059/0.1408, allocations: 26.28 kB / 345.9 MB, free: 1.609 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001096/0.1409, allocations: 75.42 kB / 346 MB, free: 1.539 MB / 286.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1409, allocations: 0 / 346 MB, free: 1.539 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02435/0.1653, allocations: 4.968 MB / 350.9 MB, free: 12.57 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002872/0.1656, allocations: 224.8 kB / 351.1 MB, free: 12.32 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.246/2.411, allocations: 0 / 351.1 MB, free: 12.32 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