Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 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.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_3_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.001145/0.001145, allocations: 112.2 kB / 17.28 MB, free: 6.219 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.001283/0.001283, allocations: 185.3 kB / 18.2 MB, free: 5.301 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.344/1.344, allocations: 205.1 MB / 224.1 MB, free: 12.44 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.00121/0.00121, allocations: 39.94 kB / 280.2 MB, free: 3.395 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1039, allocations: 46.63 MB / 326.9 MB, free: 4.699 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004367/0.1083, allocations: 3.138 MB / 330 MB, free: 1.535 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001348/0.1097, allocations: 0.7759 MB / 330.8 MB, free: 0.75 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001435/0.1099, allocations: 8 kB / 330.8 MB, free: 0.7422 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001923/0.1101, allocations: 47.61 kB / 330.8 MB, free: 0.6953 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001841/0.1103, allocations: 95.22 kB / 330.9 MB, free: 0.6016 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003229/0.1106, allocations: 83.94 kB / 331 MB, free: 0.5195 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003819/0.111, allocations: 430 kB / 331.4 MB, free: 100 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00025/0.1113, allocations: 135.7 kB / 331.6 MB, free: 15.96 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001779/0.1114, allocations: 155.4 kB / 331.7 MB, free: 15.81 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002003/0.1116, allocations: 179.2 kB / 331.9 MB, free: 15.64 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.195e-05/0.1117, allocations: 32 kB / 331.9 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.436e-05/0.1118, allocations: 36 kB / 332 MB, free: 15.57 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.774e-05/0.1119, allocations: 79.75 kB / 332 MB, free: 15.49 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001641/0.112, allocations: 183.1 kB / 332.2 MB, free: 15.31 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003475/0.1124, allocations: 414.8 kB / 332.6 MB, free: 14.91 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.1124, allocations: 0 / 332.6 MB, free: 14.91 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.1124, allocations: 3.938 kB / 332.6 MB, free: 14.9 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.1124, allocations: 0 / 332.6 MB, free: 14.9 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.0009917/0.1134, allocations: 0.6548 MB / 333.3 MB, free: 14.2 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/0.1135, allocations: 16.02 kB / 333.3 MB, free: 14.18 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.955e-05/0.1135, allocations: 66.72 kB / 333.4 MB, free: 14.11 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.104e-05/0.1136, allocations: 44.5 kB / 333.4 MB, free: 14.06 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003165/0.1139, allocations: 281.2 kB / 333.7 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.146e-05/0.114, allocations: 80.61 kB / 333.8 MB, free: 13.66 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.376e-05/0.1141, allocations: 32.38 kB / 333.8 MB, free: 13.63 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005289/0.1146, allocations: 342.7 kB / 334.1 MB, free: 13.28 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.1147, allocations: 3.938 kB / 334.1 MB, free: 13.27 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.063e-05/0.1147, allocations: 12 kB / 334.1 MB, free: 13.26 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.337e-05/0.1147, allocations: 8 kB / 334.2 MB, free: 13.25 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003858/0.1151, allocations: 218.5 kB / 334.4 MB, free: 13.04 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001744/0.1169, allocations: 1.364 MB / 335.7 MB, free: 11.57 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003519/0.1172, allocations: 174.5 kB / 335.9 MB, free: 11.39 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000157/0.1174, allocations: 84.83 kB / 336 MB, free: 11.31 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.883e-05/0.1174, allocations: 8 kB / 336 MB, free: 11.3 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003955/0.1178, allocations: 149.9 kB / 336.1 MB, free: 11.13 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.603e-06/0.1178, allocations: 0 / 336.1 MB, free: 11.13 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001106/0.119, allocations: 411 kB / 336.5 MB, free: 10.7 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.77e-05/0.119, allocations: 110.8 kB / 336.6 MB, free: 10.57 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002488/0.1193, allocations: 258.6 kB / 336.9 MB, free: 10.31 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.562e-05/0.1193, allocations: 29.7 kB / 336.9 MB, free: 10.27 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001309/0.1195, allocations: 207.9 kB / 337.1 MB, free: 10.07 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.181e-05/0.1195, allocations: 71 kB / 337.2 MB, free: 9.996 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.743e-05/0.1196, allocations: 69.88 kB / 337.3 MB, free: 9.922 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.1198, allocations: 334.8 kB / 337.6 MB, free: 9.586 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001526/0.1199, allocations: 80.61 kB / 337.7 MB, free: 9.508 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001995/0.1201, allocations: 181.4 kB / 337.9 MB, free: 9.289 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003196/0.1205, allocations: 231.6 kB / 338.1 MB, free: 9.027 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.1205, allocations: 4 kB / 338.1 MB, free: 9.023 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.00062/0.1211, allocations: 343.4 kB / 338.4 MB, free: 8.68 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.1211, allocations: 8 kB / 338.4 MB, free: 8.672 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.1212, allocations: 352 / 338.4 MB, free: 8.672 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002622/0.1214, allocations: 64.75 kB / 338.5 MB, free: 8.605 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002599/0.1217, allocations: 59.91 kB / 338.5 MB, free: 8.547 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001289/0.123, allocations: 1.572 MB / 340.1 MB, free: 6.836 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002457/0.1233, allocations: 43.67 kB / 340.2 MB, free: 6.793 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.641e-05/0.1233, allocations: 15.98 kB / 340.2 MB, free: 6.777 MB / 286.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 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001491/0.1234, allocations: 153.2 kB / 340.3 MB, free: 6.621 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.1e-05/0.1235, allocations: 31.66 kB / 340.4 MB, free: 6.59 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.77e-05/0.1235, allocations: 38.22 kB / 340.4 MB, free: 6.559 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.1236, allocations: 4 kB / 340.4 MB, free: 6.555 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.1236, allocations: 0 / 340.4 MB, free: 6.555 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.626e-06/0.1236, allocations: 0 / 340.4 MB, free: 6.555 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003447/0.1239, allocations: 345.3 kB / 340.7 MB, free: 6.168 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.1239, allocations: 3.938 kB / 340.7 MB, free: 6.164 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001935/0.1241, allocations: 31.98 kB / 340.8 MB, free: 6.133 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000186/0.1243, allocations: 56.75 kB / 340.8 MB, free: 6.074 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.467e-05/0.1244, allocations: 7.984 kB / 340.8 MB, free: 6.066 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001133/0.1255, allocations: 1.41 MB / 342.2 MB, free: 4.512 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1255, allocations: 0 / 342.2 MB, free: 4.512 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000659/0.1262, allocations: 362.1 kB / 342.6 MB, free: 4.137 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.779e-05/0.1263, allocations: 116.8 kB / 342.7 MB, free: 4.004 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.882e-05/0.1263, allocations: 4 kB / 342.7 MB, free: 4 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001776/0.1265, allocations: 19.98 kB / 342.7 MB, free: 3.98 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.251e-05/0.1266, allocations: 31.89 kB / 342.8 MB, free: 3.949 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.75e-05/0.1266, allocations: 12.06 kB / 342.8 MB, free: 3.938 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001541/0.1268, allocations: 182 kB / 343 MB, free: 3.758 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1268, allocations: 0 / 343 MB, free: 3.758 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003688/0.1272, allocations: 83.84 kB / 343 MB, free: 3.676 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: 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009655/0.1282, allocations: 0.8977 MB / 343.9 MB, free: 2.746 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005821/0.1288, allocations: 314.7 kB / 344.2 MB, free: 2.426 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.1288, allocations: 4.75 kB / 344.3 MB, free: 2.422 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002913/0.1291, allocations: 202.6 kB / 344.4 MB, free: 2.211 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002793/0.1294, allocations: 36.48 kB / 344.5 MB, free: 2.176 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003969/0.1333, allocations: 3.034 MB / 347.5 MB, free: 14.99 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000364/0.1337, allocations: 0.7714 MB / 348.3 MB, free: 14.19 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001243/0.1338, allocations: 26.28 kB / 348.3 MB, free: 14.16 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001214/0.134, allocations: 91.41 kB / 348.4 MB, free: 14.07 MB / 302.1 MB Notification: Performance of SimCode: time 8.61e-07/0.134, allocations: 0 / 348.4 MB, free: 14.07 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02077/0.1548, allocations: 5.706 MB / 354.1 MB, free: 8.348 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001757/0.155, allocations: 241.6 kB / 354.3 MB, free: 8.094 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.076/2.231, allocations: 3.938 kB / 354.4 MB, free: 8.09 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches