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.0007833/0.000783, allocations: 91.53 kB / 17.3 MB, free: 6.395 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.0008321/0.0008323, allocations: 173 kB / 18.2 MB, free: 5.551 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.389/1.389, allocations: 205.4 MB / 224.4 MB, free: 13.08 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.0004412/0.0004412, allocations: 16 kB / 281.5 MB, free: 3.32 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08811/0.08856, allocations: 47.58 MB / 329.1 MB, free: 3.66 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003084/0.09168, allocations: 2.764 MB / 331.8 MB, free: 0.875 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001259/0.09296, allocations: 0.7683 MB / 332.6 MB, free: 100 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000145/0.09312, allocations: 4 kB / 332.6 MB, free: 96 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001611/0.09329, allocations: 43.69 kB / 332.6 MB, free: 52 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000193/0.09349, allocations: 91.22 kB / 332.7 MB, free: 15.96 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003113/0.09381, allocations: 91.91 kB / 332.8 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003598/0.09418, allocations: 402.1 kB / 333.2 MB, free: 15.48 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002145/0.0944, allocations: 112.3 kB / 333.3 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001666/0.09458, allocations: 135.4 kB / 333.5 MB, free: 15.23 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001786/0.09477, allocations: 163.2 kB / 333.6 MB, free: 15.07 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.919e-05/0.09481, allocations: 16 kB / 333.6 MB, free: 15.05 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.321e-05/0.09486, allocations: 20 kB / 333.6 MB, free: 15.04 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.011e-05/0.09493, allocations: 63.75 kB / 333.7 MB, free: 14.97 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001533/0.09509, allocations: 188.8 kB / 333.9 MB, free: 14.78 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003208/0.09542, allocations: 394.7 kB / 334.3 MB, free: 14.39 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.09543, allocations: 0 / 334.3 MB, free: 14.39 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.09544, allocations: 0 / 334.3 MB, free: 14.39 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.672e-06/0.09545, allocations: 4 kB / 334.3 MB, free: 14.39 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.0009608/0.09641, allocations: 0.6003 MB / 334.9 MB, free: 13.74 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.09647, allocations: 8.031 kB / 334.9 MB, free: 13.73 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.048e-05/0.09655, allocations: 74.72 kB / 335 MB, free: 13.65 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.648e-05/0.09664, allocations: 40.47 kB / 335 MB, free: 13.61 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003171/0.09696, allocations: 273.3 kB / 335.3 MB, free: 13.3 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.675e-05/0.09706, allocations: 80.62 kB / 335.4 MB, free: 13.21 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.64e-05/0.09712, allocations: 36.36 kB / 335.4 MB, free: 13.18 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005625/0.09769, allocations: 346.7 kB / 335.7 MB, free: 12.82 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.09771, allocations: 0 / 335.7 MB, free: 12.82 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.321e-05/0.09775, allocations: 19.88 kB / 335.7 MB, free: 12.8 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.147e-05/0.09777, allocations: 8 kB / 335.8 MB, free: 12.79 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004137/0.09819, allocations: 226.5 kB / 336 MB, free: 12.57 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001817/0.1, allocations: 1.379 MB / 337.4 MB, free: 11.09 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003447/0.1004, allocations: 182.1 kB / 337.5 MB, free: 10.91 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001697/0.1006, allocations: 96.8 kB / 337.6 MB, free: 10.81 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.821e-05/0.1006, allocations: 0 / 337.6 MB, free: 10.81 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000321/0.1009, allocations: 157.9 kB / 337.8 MB, free: 10.63 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.333e-06/0.1009, allocations: 3.938 kB / 337.8 MB, free: 10.63 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001174/0.1021, allocations: 423.1 kB / 338.2 MB, free: 10.19 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.891e-05/0.1022, allocations: 106.8 kB / 338.3 MB, free: 10.06 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002578/0.1025, allocations: 254.7 kB / 338.5 MB, free: 9.805 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.514e-05/0.1025, allocations: 33.7 kB / 338.6 MB, free: 9.766 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001372/0.1026, allocations: 211.8 kB / 338.8 MB, free: 9.555 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.579e-05/0.1027, allocations: 63.09 kB / 338.9 MB, free: 9.492 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.821e-05/0.1028, allocations: 33.7 kB / 338.9 MB, free: 9.453 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.1029, allocations: 342.8 kB / 339.2 MB, free: 9.109 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001592/0.1031, allocations: 72.62 kB / 339.3 MB, free: 9.039 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002228/0.1033, allocations: 185.4 kB / 339.5 MB, free: 8.816 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003641/0.1037, allocations: 247.6 kB / 339.7 MB, free: 8.539 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.1037, allocations: 0 / 339.7 MB, free: 8.539 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006683/0.1044, allocations: 355.5 kB / 340.1 MB, free: 8.184 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.1044, allocations: 8 kB / 340.1 MB, free: 8.176 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.1044, allocations: 4 kB / 340.1 MB, free: 8.172 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002684/0.1047, allocations: 60.97 kB / 340.1 MB, free: 8.109 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000248/0.1049, allocations: 59.91 kB / 340.2 MB, free: 8.051 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001266/0.1062, allocations: 1.408 MB / 341.6 MB, free: 6.508 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002379/0.1065, allocations: 47.77 kB / 341.6 MB, free: 6.461 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.13e-05/0.1065, allocations: 16 kB / 341.7 MB, free: 6.445 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.0001613/0.1067, allocations: 149.7 kB / 341.8 MB, free: 6.289 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.06e-05/0.1067, allocations: 31.66 kB / 341.8 MB, free: 6.258 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.948e-05/0.1068, allocations: 26.17 kB / 341.9 MB, free: 6.234 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.666e-06/0.1068, allocations: 4 kB / 341.9 MB, free: 6.23 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.1068, allocations: 3.938 kB / 341.9 MB, free: 6.227 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.1068, allocations: 0 / 341.9 MB, free: 6.227 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003236/0.1071, allocations: 353.3 kB / 342.2 MB, free: 5.832 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-06/0.1071, allocations: 0 / 342.2 MB, free: 5.832 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00018/0.1073, allocations: 31.98 kB / 342.2 MB, free: 5.801 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001749/0.1075, allocations: 48.81 kB / 342.3 MB, free: 5.75 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.075e-05/0.1075, allocations: 19.92 kB / 342.3 MB, free: 5.73 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001034/0.1086, allocations: 1.323 MB / 343.6 MB, free: 4.273 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.1086, allocations: 0 / 343.6 MB, free: 4.273 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000719/0.1093, allocations: 366.2 kB / 344 MB, free: 3.895 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.292e-05/0.1094, allocations: 120.8 kB / 344.1 MB, free: 3.758 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.309e-05/0.1095, allocations: 0 / 344.1 MB, free: 3.758 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001801/0.1096, allocations: 23.98 kB / 344.1 MB, free: 3.734 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.594e-05/0.1097, allocations: 27.95 kB / 344.2 MB, free: 3.707 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.635e-05/0.1098, allocations: 12.05 kB / 344.2 MB, free: 3.695 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001628/0.1099, allocations: 182 kB / 344.4 MB, free: 3.516 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1099, allocations: 4 kB / 344.4 MB, free: 3.512 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003671/0.1103, allocations: 87.75 kB / 344.4 MB, free: 3.426 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.0009795/0.1113, allocations: 0.894 MB / 345.3 MB, free: 2.5 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005779/0.1119, allocations: 327 kB / 345.7 MB, free: 2.168 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.1119, allocations: 0 / 345.7 MB, free: 2.168 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002782/0.1122, allocations: 194.5 kB / 345.8 MB, free: 1.965 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002802/0.1125, allocations: 32.55 kB / 345.9 MB, free: 1.934 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004092/0.1166, allocations: 3.115 MB / 349 MB, free: 14.67 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003271/0.1169, allocations: 0.7714 MB / 349.8 MB, free: 13.87 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001152/0.1171, allocations: 30.27 kB / 349.8 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001224/0.1172, allocations: 91.41 kB / 349.9 MB, free: 13.75 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1172, allocations: 3.938 kB / 349.9 MB, free: 13.75 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01608/0.1333, allocations: 5.403 MB / 355.3 MB, free: 8.336 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001976/0.1335, allocations: 248.6 kB / 355.5 MB, free: 8.074 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.825/1.959, allocations: 0 / 355.5 MB, free: 8.074 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