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.001066/0.001066, allocations: 114 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.001081/0.001081, allocations: 189.3 kB / 18.2 MB, free: 5.297 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.53/1.53, allocations: 205.1 MB / 224 MB, free: 12.46 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.001141/0.001141, allocations: 55.92 kB / 280.3 MB, free: 3.402 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09246/0.09361, allocations: 46.63 MB / 326.9 MB, free: 4.707 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004136/0.0978, allocations: 2.873 MB / 329.8 MB, free: 1.809 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001066/0.09888, allocations: 0.7604 MB / 330.5 MB, free: 1.039 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001318/0.09903, allocations: 4 kB / 330.5 MB, free: 1.035 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001535/0.09919, allocations: 43.69 kB / 330.6 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001472/0.09935, allocations: 71.39 kB / 330.6 MB, free: 0.9219 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002867/0.09964, allocations: 87.84 kB / 330.7 MB, free: 0.8359 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003178/0.09997, allocations: 366.4 kB / 331.1 MB, free: 488 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002403/0.1002, allocations: 123.2 kB / 331.2 MB, free: 368 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001396/0.1004, allocations: 139.5 kB / 331.3 MB, free: 228 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001819/0.1006, allocations: 151.4 kB / 331.5 MB, free: 76 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.599e-05/0.1006, allocations: 32 kB / 331.5 MB, free: 44 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.87e-05/0.1007, allocations: 31.94 kB / 331.5 MB, free: 12 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.126e-05/0.1007, allocations: 71.88 kB / 331.6 MB, free: 15.94 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001541/0.1009, allocations: 163.2 kB / 331.8 MB, free: 15.78 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003365/0.1013, allocations: 358.8 kB / 332.1 MB, free: 15.43 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.1013, allocations: 0 / 332.1 MB, free: 15.43 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.1013, allocations: 0 / 332.1 MB, free: 15.43 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.721e-05/0.1013, allocations: 4 kB / 332.1 MB, free: 15.43 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.0009421/0.1022, allocations: 0.6056 MB / 332.7 MB, free: 14.77 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.1023, allocations: 12.03 kB / 332.7 MB, free: 14.75 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.03e-05/0.1024, allocations: 66.72 kB / 332.8 MB, free: 14.68 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.717e-05/0.1024, allocations: 36.56 kB / 332.8 MB, free: 14.64 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002739/0.1027, allocations: 272.3 kB / 333.1 MB, free: 14.34 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.539e-05/0.1028, allocations: 72.62 kB / 333.2 MB, free: 14.26 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.356e-05/0.1029, allocations: 28.38 kB / 333.2 MB, free: 14.23 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004539/0.1033, allocations: 301.7 kB / 333.5 MB, free: 13.92 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.1033, allocations: 0 / 333.5 MB, free: 13.92 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.838e-05/0.1034, allocations: 12 kB / 333.5 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.1034, allocations: 8 kB / 333.5 MB, free: 13.9 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003139/0.1037, allocations: 198.1 kB / 333.7 MB, free: 13.71 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001532/0.1052, allocations: 1.127 MB / 334.8 MB, free: 12.5 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002786/0.1055, allocations: 158.5 kB / 335 MB, free: 12.33 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001241/0.1057, allocations: 80.83 kB / 335.1 MB, free: 12.25 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.812e-05/0.1057, allocations: 4 kB / 335.1 MB, free: 12.25 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000283/0.106, allocations: 153.8 kB / 335.2 MB, free: 12.07 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.373e-06/0.106, allocations: 0 / 335.2 MB, free: 12.07 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.0009672/0.107, allocations: 383.1 kB / 335.6 MB, free: 11.67 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.233e-05/0.107, allocations: 110.8 kB / 335.7 MB, free: 11.54 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001986/0.1072, allocations: 225 kB / 335.9 MB, free: 11.31 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.332e-05/0.1073, allocations: 29.7 kB / 336 MB, free: 11.27 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001125/0.1074, allocations: 176.2 kB / 336.1 MB, free: 11.1 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.396e-05/0.1075, allocations: 74.98 kB / 336.2 MB, free: 11.02 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.328e-05/0.1075, allocations: 57.7 kB / 336.3 MB, free: 10.96 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.1077, allocations: 338.8 kB / 336.6 MB, free: 10.62 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001169/0.1078, allocations: 63.97 kB / 336.7 MB, free: 10.56 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001611/0.108, allocations: 148.6 kB / 336.8 MB, free: 10.38 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002594/0.1082, allocations: 184.2 kB / 337 MB, free: 10.18 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.1082, allocations: 4 kB / 337 MB, free: 10.18 MB / 286.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003899/0.1086, allocations: 275.7 kB / 337.3 MB, free: 9.898 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.1087, allocations: 4 kB / 337.3 MB, free: 9.895 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.1087, allocations: 4 kB / 337.3 MB, free: 9.891 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000248/0.1089, allocations: 53.03 kB / 337.3 MB, free: 9.836 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001979/0.1091, allocations: 59.84 kB / 337.4 MB, free: 9.777 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001231/0.1104, allocations: 1.568 MB / 338.9 MB, free: 8.074 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000208/0.1106, allocations: 43.77 kB / 339 MB, free: 8.031 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.848e-05/0.1106, allocations: 11.94 kB / 339 MB, free: 8.02 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.0001329/0.1108, allocations: 154.5 kB / 339.1 MB, free: 7.859 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.239e-05/0.1108, allocations: 23.8 kB / 339.2 MB, free: 7.836 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.536e-05/0.1109, allocations: 22.19 kB / 339.2 MB, free: 7.816 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.1109, allocations: 4 kB / 339.2 MB, free: 7.812 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.1109, allocations: 0 / 339.2 MB, free: 7.812 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.1109, allocations: 7.922 kB / 339.2 MB, free: 7.805 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000285/0.1112, allocations: 321.3 kB / 339.5 MB, free: 7.441 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.1112, allocations: 0 / 339.5 MB, free: 7.441 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001555/0.1113, allocations: 35.98 kB / 339.6 MB, free: 7.406 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001658/0.1115, allocations: 44.81 kB / 339.6 MB, free: 7.359 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.005e-05/0.1115, allocations: 8 kB / 339.6 MB, free: 7.352 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00106/0.1126, allocations: 1.426 MB / 341 MB, free: 5.785 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1126, allocations: 0 / 341 MB, free: 5.785 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005627/0.1132, allocations: 329.4 kB / 341.4 MB, free: 5.441 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.288e-05/0.1133, allocations: 120.8 kB / 341.5 MB, free: 5.305 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.587e-05/0.1133, allocations: 12 kB / 341.5 MB, free: 5.293 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001588/0.1135, allocations: 11.98 kB / 341.5 MB, free: 5.281 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.828e-05/0.1136, allocations: 35.95 kB / 341.5 MB, free: 5.246 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.164e-05/0.1136, allocations: 4 kB / 341.5 MB, free: 5.242 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001243/0.1137, allocations: 160.5 kB / 341.7 MB, free: 5.086 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1137, allocations: 0 / 341.7 MB, free: 5.086 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003241/0.1141, allocations: 79.84 kB / 341.8 MB, free: 5.008 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.0008604/0.1149, allocations: 0.8628 MB / 342.6 MB, free: 4.113 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005217/0.1155, allocations: 306.6 kB / 342.9 MB, free: 3.801 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1155, allocations: 0 / 342.9 MB, free: 3.801 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002556/0.1157, allocations: 186.6 kB / 343.1 MB, free: 3.605 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000291/0.116, allocations: 44.34 kB / 343.2 MB, free: 3.562 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003632/0.1197, allocations: 2.711 MB / 345.9 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003055/0.12, allocations: 0.7635 MB / 346.6 MB, free: 15.93 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001011/0.1201, allocations: 18.3 kB / 346.6 MB, free: 15.91 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001271/0.1203, allocations: 83.41 kB / 346.7 MB, free: 15.82 MB / 302.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1203, allocations: 4 kB / 346.7 MB, free: 15.82 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01909/0.1394, allocations: 5.355 MB / 352.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002229/0.1396, allocations: 225.1 kB / 352.3 MB, free: 10.2 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.906/2.046, allocations: 0 / 352.3 MB, free: 10.2 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