Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.SwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_4_0_0_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.001832/0.001832, allocations: 107.5 kB / 16.62 MB, free: 6.812 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.002162/0.002162, allocations: 193.9 kB / 17.55 MB, free: 5.953 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.437/1.437, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001023/0.001023, allocations: 50.92 kB / 300.2 MB, free: 6.105 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1078, allocations: 49.46 MB / 349.7 MB, free: 4.645 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004444/0.1123, allocations: 2.889 MB / 352.6 MB, free: 1.734 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001467/0.1138, allocations: 0.7323 MB / 353.3 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001555/0.1139, allocations: 8 kB / 353.3 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001935/0.1141, allocations: 35.69 kB / 353.4 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001694/0.1143, allocations: 67.39 kB / 353.4 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004073/0.1148, allocations: 95.84 kB / 353.5 MB, free: 0.793 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003373/0.1151, allocations: 370.3 kB / 353.9 MB, free: 440 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002221/0.1153, allocations: 119.2 kB / 354 MB, free: 320 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001292/0.1155, allocations: 135.5 kB / 354.1 MB, free: 184 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001807/0.1157, allocations: 151.4 kB / 354.3 MB, free: 32 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.917e-05/0.1157, allocations: 32 kB / 354.3 MB, free: 0 / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.014e-05/0.1158, allocations: 32.05 kB / 354.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.605e-05/0.1159, allocations: 75.75 kB / 354.4 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001365/0.116, allocations: 163.2 kB / 354.6 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003137/0.1163, allocations: 359 kB / 354.9 MB, free: 15.38 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.1163, allocations: 0 / 354.9 MB, free: 15.38 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1163, allocations: 0 / 354.9 MB, free: 15.38 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.624e-06/0.1164, allocations: 0 / 354.9 MB, free: 15.38 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.001085/0.1174, allocations: 0.6135 MB / 355.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.167e-05/0.1175, allocations: 8.031 kB / 355.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.946e-05/0.1176, allocations: 62.72 kB / 355.6 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.815e-05/0.1177, allocations: 40.5 kB / 355.6 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004198/0.1181, allocations: 260.3 kB / 355.9 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.306e-05/0.1182, allocations: 80.56 kB / 356 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.423e-05/0.1183, allocations: 28.38 kB / 356 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005179/0.1188, allocations: 305.6 kB / 356.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.1188, allocations: 0 / 356.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.032e-05/0.1189, allocations: 12 kB / 356.3 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.1189, allocations: 8 kB / 356.3 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000326/0.1192, allocations: 194.1 kB / 356.5 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00167/0.1209, allocations: 1.127 MB / 357.6 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003034/0.1212, allocations: 158.5 kB / 357.8 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001976/0.1214, allocations: 84.83 kB / 357.9 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.303e-05/0.1214, allocations: 0 / 357.9 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003604/0.1218, allocations: 161.8 kB / 358 MB, free: 12.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.583e-06/0.1218, allocations: 0 / 358 MB, free: 12.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001055/0.1229, allocations: 384.5 kB / 358.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.133e-05/0.123, allocations: 114.8 kB / 358.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002198/0.1232, allocations: 224.9 kB / 358.7 MB, free: 11.26 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.57e-05/0.1232, allocations: 29.7 kB / 358.8 MB, free: 11.22 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001319/0.1234, allocations: 184.2 kB / 359 MB, free: 11.04 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.073e-05/0.1234, allocations: 67 kB / 359 MB, free: 10.97 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.799e-05/0.1235, allocations: 57.7 kB / 359.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.1237, allocations: 338.8 kB / 359.4 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001197/0.1238, allocations: 63.97 kB / 359.5 MB, free: 10.51 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001698/0.124, allocations: 144.6 kB / 359.6 MB, free: 10.33 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002536/0.1242, allocations: 188.2 kB / 359.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.1242, allocations: 4 kB / 359.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004096/0.1246, allocations: 276.5 kB / 360.1 MB, free: 9.844 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.1247, allocations: 4 kB / 360.1 MB, free: 9.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.1247, allocations: 7.984 kB / 360.1 MB, free: 9.832 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002509/0.1249, allocations: 52.77 kB / 360.1 MB, free: 9.777 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000208/0.1252, allocations: 55.97 kB / 360.2 MB, free: 9.723 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001343/0.1265, allocations: 1.572 MB / 361.8 MB, free: 8.012 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000231/0.1268, allocations: 39.67 kB / 361.8 MB, free: 7.973 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.143e-05/0.1268, allocations: 12 kB / 361.8 MB, free: 7.961 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,switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition1) * 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 (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.0001339/0.1269, allocations: 149.8 kB / 362 MB, free: 7.805 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.14e-05/0.127, allocations: 27.7 kB / 362 MB, free: 7.777 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.941e-05/0.127, allocations: 22.19 kB / 362 MB, free: 7.762 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.127, allocations: 4 kB / 362 MB, free: 7.758 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-06/0.127, allocations: 0 / 362 MB, free: 7.758 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.127, allocations: 3.984 kB / 362 MB, free: 7.754 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002891/0.1273, allocations: 321.4 kB / 362.3 MB, free: 7.391 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.1273, allocations: 0 / 362.3 MB, free: 7.391 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001625/0.1275, allocations: 39.86 kB / 362.4 MB, free: 7.352 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001926/0.1277, allocations: 56.81 kB / 362.4 MB, free: 7.293 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.557e-05/0.1277, allocations: 0 / 362.4 MB, free: 7.293 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001089/0.1288, allocations: 1.426 MB / 363.8 MB, free: 5.723 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1288, allocations: 0 / 363.8 MB, free: 5.723 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006112/0.1295, allocations: 331.6 kB / 364.2 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001034/0.1296, allocations: 120.6 kB / 364.3 MB, free: 5.242 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.658e-05/0.1296, allocations: 4 kB / 364.3 MB, free: 5.238 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001722/0.1298, allocations: 19.98 kB / 364.3 MB, free: 5.219 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.528e-05/0.1299, allocations: 32.02 kB / 364.3 MB, free: 5.188 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.33e-05/0.1299, allocations: 4 kB / 364.3 MB, free: 5.184 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000134/0.1301, allocations: 164.5 kB / 364.5 MB, free: 5.023 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1301, allocations: 0 / 364.5 MB, free: 5.023 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003672/0.1304, allocations: 75.84 kB / 364.6 MB, free: 4.949 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 (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.0009214/0.1314, allocations: 0.8696 MB / 365.5 MB, free: 4.051 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005227/0.1319, allocations: 290.5 kB / 365.7 MB, free: 3.754 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1319, allocations: 0 / 365.7 MB, free: 3.754 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002754/0.1322, allocations: 203 kB / 365.9 MB, free: 3.543 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002917/0.1325, allocations: 32.42 kB / 366 MB, free: 3.512 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003538/0.136, allocations: 2.706 MB / 368.7 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1658/0.3019, allocations: 0.7568 MB / 369.4 MB, free: 25.11 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002107/0.3022, allocations: 25.89 kB / 369.5 MB, free: 25.11 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001414/0.3023, allocations: 78.61 kB / 369.5 MB, free: 25.1 MB / 302.1 MB Notification: Performance of SimCode: time 1.052e-06/0.3023, allocations: 0 / 369.5 MB, free: 25.1 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02508/0.3274, allocations: 5.342 MB / 374.9 MB, free: 24.74 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002055/0.3277, allocations: 234.2 kB / 375.1 MB, free: 24.49 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.128/2.456, allocations: 3.938 kB / 375.1 MB, free: 24.48 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches