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.001342/0.001342, allocations: 109 kB / 17.15 MB, free: 6.328 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.001551/0.001551, allocations: 198 kB / 18.07 MB, free: 5.434 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.468/1.468, allocations: 205.1 MB / 223.9 MB, free: 12.49 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.001102/0.001102, allocations: 55.94 kB / 280.1 MB, free: 3.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09363/0.09475, allocations: 46.63 MB / 326.7 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003787/0.09857, allocations: 2.877 MB / 329.6 MB, free: 1.898 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00107/0.09967, allocations: 0.7643 MB / 330.3 MB, free: 1.125 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001187/0.0998, allocations: 7.938 kB / 330.3 MB, free: 1.117 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001515/0.09997, allocations: 39.75 kB / 330.4 MB, free: 1.078 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001539/0.1001, allocations: 79.31 kB / 330.5 MB, free: 1 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002736/0.1004, allocations: 87.92 kB / 330.5 MB, free: 0.9141 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003119/0.1007, allocations: 350.4 kB / 330.9 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001836/0.1009, allocations: 103.9 kB / 331 MB, free: 480 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001243/0.1011, allocations: 123.6 kB / 331.1 MB, free: 356 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001756/0.1012, allocations: 155.2 kB / 331.3 MB, free: 200 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.609e-05/0.1013, allocations: 20 kB / 331.3 MB, free: 180 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.967e-05/0.1013, allocations: 24 kB / 331.3 MB, free: 156 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.16e-05/0.1014, allocations: 55.77 kB / 331.4 MB, free: 100 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001782/0.1016, allocations: 155.3 kB / 331.5 MB, free: 15.94 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003188/0.1019, allocations: 350.9 kB / 331.9 MB, free: 15.6 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.1019, allocations: 0 / 331.9 MB, free: 15.6 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.32e-07/0.1019, allocations: 4 kB / 331.9 MB, free: 15.6 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.1019, allocations: 0 / 331.9 MB, free: 15.6 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.0009131/0.1029, allocations: 0.5979 MB / 332.5 MB, free: 14.95 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.1029, allocations: 12.03 kB / 332.5 MB, free: 14.94 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.761e-05/0.103, allocations: 62.72 kB / 332.5 MB, free: 14.87 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.694e-05/0.1031, allocations: 40.56 kB / 332.6 MB, free: 14.83 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002961/0.1034, allocations: 268.3 kB / 332.8 MB, free: 14.53 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.286e-05/0.1035, allocations: 80.61 kB / 332.9 MB, free: 14.44 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.622e-05/0.1035, allocations: 28.38 kB / 332.9 MB, free: 14.41 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004576/0.104, allocations: 293.7 kB / 333.2 MB, free: 14.11 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.104, allocations: 3.938 kB / 333.2 MB, free: 14.11 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.087e-05/0.104, allocations: 19.98 kB / 333.2 MB, free: 14.09 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.104, allocations: 12 kB / 333.3 MB, free: 14.07 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003188/0.1044, allocations: 182.2 kB / 333.4 MB, free: 13.9 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001574/0.1059, allocations: 1.123 MB / 334.6 MB, free: 12.69 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000294/0.1063, allocations: 158.6 kB / 334.7 MB, free: 12.52 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001261/0.1064, allocations: 80.84 kB / 334.8 MB, free: 12.44 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.167e-05/0.1064, allocations: 3.938 kB / 334.8 MB, free: 12.44 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003112/0.1067, allocations: 161.8 kB / 335 MB, free: 12.26 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.653e-06/0.1068, allocations: 3.938 kB / 335 MB, free: 12.25 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001035/0.1078, allocations: 387.2 kB / 335.3 MB, free: 11.85 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.155e-05/0.1079, allocations: 106.8 kB / 335.4 MB, free: 11.72 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002098/0.1081, allocations: 221 kB / 335.7 MB, free: 11.49 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.711e-05/0.1081, allocations: 37.64 kB / 335.7 MB, free: 11.45 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.1082, allocations: 180.2 kB / 335.9 MB, free: 11.27 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.28e-05/0.1083, allocations: 71 kB / 335.9 MB, free: 11.2 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.039e-05/0.1084, allocations: 57.69 kB / 336 MB, free: 11.14 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.1085, allocations: 338.8 kB / 336.3 MB, free: 10.8 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001293/0.1087, allocations: 63.98 kB / 336.4 MB, free: 10.73 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001789/0.1089, allocations: 144.6 kB / 336.5 MB, free: 10.56 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002571/0.1091, allocations: 196.2 kB / 336.7 MB, free: 10.35 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.1091, allocations: 0 / 336.7 MB, free: 10.35 MB / 286.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004433/0.1096, allocations: 271.6 kB / 337 MB, free: 10.07 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.1096, allocations: 8 kB / 337 MB, free: 10.07 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.1096, allocations: 0 / 337 MB, free: 10.07 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002598/0.1099, allocations: 61.03 kB / 337.1 MB, free: 10 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002028/0.1101, allocations: 47.92 kB / 337.1 MB, free: 9.957 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001262/0.1114, allocations: 1.404 MB / 338.5 MB, free: 8.422 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002174/0.1116, allocations: 39.7 kB / 338.5 MB, free: 8.383 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.173e-05/0.1116, allocations: 12 kB / 338.6 MB, free: 8.371 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,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.0001388/0.1118, allocations: 149.9 kB / 338.7 MB, free: 8.215 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.622e-05/0.1118, allocations: 23.75 kB / 338.7 MB, free: 8.191 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.546e-05/0.1119, allocations: 22.19 kB / 338.7 MB, free: 8.172 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.1119, allocations: 4 kB / 338.7 MB, free: 8.168 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.1119, allocations: 3.984 kB / 338.8 MB, free: 8.164 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.1119, allocations: 0 / 338.8 MB, free: 8.164 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003067/0.1122, allocations: 317.4 kB / 339.1 MB, free: 7.805 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.1122, allocations: 3.938 kB / 339.1 MB, free: 7.801 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001621/0.1124, allocations: 31.98 kB / 339.1 MB, free: 7.77 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001891/0.1126, allocations: 56.75 kB / 339.2 MB, free: 7.711 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.884e-05/0.1126, allocations: 4 kB / 339.2 MB, free: 7.707 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001085/0.1137, allocations: 1.327 MB / 340.5 MB, free: 6.242 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.1137, allocations: 4.031 kB / 340.5 MB, free: 6.238 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006009/0.1143, allocations: 334.3 kB / 340.8 MB, free: 5.891 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001015/0.1145, allocations: 112.8 kB / 340.9 MB, free: 5.762 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.51e-05/0.1145, allocations: 4 kB / 340.9 MB, free: 5.758 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001657/0.1147, allocations: 19.98 kB / 340.9 MB, free: 5.738 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.221e-05/0.1148, allocations: 31.89 kB / 341 MB, free: 5.707 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.28e-05/0.1148, allocations: 8.062 kB / 341 MB, free: 5.699 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001399/0.1149, allocations: 164.5 kB / 341.1 MB, free: 5.539 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1149, allocations: 3.938 kB / 341.2 MB, free: 5.535 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000344/0.1153, allocations: 75.84 kB / 341.2 MB, free: 5.461 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 (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.0008904/0.1162, allocations: 0.8669 MB / 342.1 MB, free: 4.562 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004872/0.1167, allocations: 286.5 kB / 342.4 MB, free: 4.27 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.1167, allocations: 0 / 342.4 MB, free: 4.27 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002656/0.117, allocations: 190.6 kB / 342.6 MB, free: 4.07 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003031/0.1173, allocations: 40.86 kB / 342.6 MB, free: 4.031 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003432/0.1207, allocations: 2.703 MB / 345.3 MB, free: 1.195 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003238/0.1211, allocations: 0.7636 MB / 346.1 MB, free: 416 kB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001095/0.1212, allocations: 26.28 kB / 346.1 MB, free: 388 kB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001087/0.1213, allocations: 83.41 kB / 346.2 MB, free: 304 kB / 286.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1213, allocations: 0 / 346.2 MB, free: 304 kB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02913/0.1504, allocations: 5.15 MB / 351.3 MB, free: 11.12 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001858/0.1506, allocations: 228.8 kB / 351.5 MB, free: 10.86 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.022/2.173, allocations: 3.938 kB / 351.6 MB, free: 10.86 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/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) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches