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.0008913/0.0008914, allocations: 92.94 kB / 17.3 MB, free: 6.391 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.0009108/0.0009108, allocations: 172.7 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.441/1.441, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0004907/0.0004906, allocations: 12 kB / 281.5 MB, free: 3.32 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09487/0.09537, allocations: 47.58 MB / 329.1 MB, free: 3.672 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003113/0.09854, allocations: 2.496 MB / 331.6 MB, free: 1.156 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001442/0.1, allocations: 0.7604 MB / 332.3 MB, free: 396 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001673/0.1002, allocations: 8 kB / 332.3 MB, free: 388 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001537/0.1004, allocations: 39.69 kB / 332.4 MB, free: 348 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001813/0.1006, allocations: 71.38 kB / 332.4 MB, free: 276 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003328/0.1009, allocations: 83.92 kB / 332.5 MB, free: 192 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003943/0.1013, allocations: 362.4 kB / 332.9 MB, free: 15.83 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002311/0.1015, allocations: 99.83 kB / 333 MB, free: 15.73 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001679/0.1017, allocations: 115.6 kB / 333.1 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001802/0.1019, allocations: 139.3 kB / 333.2 MB, free: 15.48 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.772e-05/0.102, allocations: 16 kB / 333.2 MB, free: 15.46 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.384e-05/0.102, allocations: 16 kB / 333.2 MB, free: 15.45 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.184e-05/0.1021, allocations: 55.77 kB / 333.3 MB, free: 15.39 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001623/0.1022, allocations: 169 kB / 333.5 MB, free: 15.22 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003217/0.1026, allocations: 346.9 kB / 333.8 MB, free: 14.88 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.1026, allocations: 0 / 333.8 MB, free: 14.88 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1026, allocations: 0 / 333.8 MB, free: 14.88 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.07e-06/0.1026, allocations: 0 / 333.8 MB, free: 14.88 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.001083/0.1037, allocations: 0.5589 MB / 334.4 MB, free: 14.27 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/0.1038, allocations: 8.031 kB / 334.4 MB, free: 14.27 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.994e-05/0.1038, allocations: 74.72 kB / 334.4 MB, free: 14.18 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.116e-05/0.1039, allocations: 32.56 kB / 334.5 MB, free: 14.15 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003169/0.1042, allocations: 268.3 kB / 334.7 MB, free: 13.85 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.979e-05/0.1043, allocations: 76.62 kB / 334.8 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.302e-05/0.1044, allocations: 32.36 kB / 334.8 MB, free: 13.73 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004919/0.1049, allocations: 301.6 kB / 335.1 MB, free: 13.43 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.1049, allocations: 0 / 335.1 MB, free: 13.43 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.008e-05/0.105, allocations: 12 kB / 335.2 MB, free: 13.41 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.009e-05/0.105, allocations: 8 kB / 335.2 MB, free: 13.41 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003443/0.1053, allocations: 190.1 kB / 335.3 MB, free: 13.22 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001788/0.1071, allocations: 1.135 MB / 336.5 MB, free: 12 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003065/0.1074, allocations: 162.5 kB / 336.6 MB, free: 11.83 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001453/0.1076, allocations: 84.81 kB / 336.7 MB, free: 11.75 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.961e-05/0.1076, allocations: 3.938 kB / 336.7 MB, free: 11.74 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003108/0.1079, allocations: 157.8 kB / 336.9 MB, free: 11.57 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.724e-06/0.108, allocations: 0 / 336.9 MB, free: 11.57 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.00116/0.1091, allocations: 399.1 kB / 337.3 MB, free: 11.15 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001284/0.1093, allocations: 110.8 kB / 337.4 MB, free: 11.02 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002416/0.1095, allocations: 229 kB / 337.6 MB, free: 10.78 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.575e-05/0.1095, allocations: 25.7 kB / 337.6 MB, free: 10.75 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001533/0.1097, allocations: 180.2 kB / 337.8 MB, free: 10.57 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.038e-05/0.1098, allocations: 67.09 kB / 337.9 MB, free: 10.5 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.752e-05/0.1098, allocations: 29.7 kB / 337.9 MB, free: 10.47 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.11, allocations: 338.8 kB / 338.2 MB, free: 10.13 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001312/0.1101, allocations: 63.97 kB / 338.3 MB, free: 10.07 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000186/0.1103, allocations: 148.6 kB / 338.4 MB, free: 9.891 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002761/0.1106, allocations: 188.2 kB / 338.6 MB, free: 9.684 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1106, allocations: 0 / 338.6 MB, free: 9.684 MB / 286.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004722/0.1111, allocations: 271.7 kB / 338.9 MB, free: 9.41 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.253e-05/0.1111, allocations: 12.22 kB / 338.9 MB, free: 9.398 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.744e-06/0.1111, allocations: 0 / 338.9 MB, free: 9.398 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002896/0.1114, allocations: 52.81 kB / 338.9 MB, free: 9.344 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002139/0.1117, allocations: 59.91 kB / 339 MB, free: 9.285 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001533/0.1132, allocations: 1.42 MB / 340.4 MB, free: 7.734 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002606/0.1135, allocations: 39.67 kB / 340.5 MB, free: 7.695 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.133e-05/0.1135, allocations: 8 kB / 340.5 MB, free: 7.688 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.0002158/0.1137, allocations: 145.8 kB / 340.6 MB, free: 7.535 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.263e-05/0.1138, allocations: 27.66 kB / 340.6 MB, free: 7.508 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.07e-05/0.1138, allocations: 30.27 kB / 340.7 MB, free: 7.48 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.1138, allocations: 4 kB / 340.7 MB, free: 7.477 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.1139, allocations: 0 / 340.7 MB, free: 7.477 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.1139, allocations: 0 / 340.7 MB, free: 7.477 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000351/0.1142, allocations: 317.5 kB / 341 MB, free: 7.117 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.117e-06/0.1142, allocations: 3.938 kB / 341 MB, free: 7.113 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002205/0.1145, allocations: 39.92 kB / 341 MB, free: 7.074 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001869/0.1147, allocations: 52.81 kB / 341.1 MB, free: 7.02 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.052e-05/0.1147, allocations: 4 kB / 341.1 MB, free: 7.016 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001246/0.1159, allocations: 1.327 MB / 342.4 MB, free: 5.551 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.116, allocations: 0 / 342.4 MB, free: 5.551 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006464/0.1166, allocations: 334.3 kB / 342.7 MB, free: 5.203 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001172/0.1167, allocations: 116.8 kB / 342.9 MB, free: 5.07 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.577e-05/0.1168, allocations: 8 kB / 342.9 MB, free: 5.062 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001676/0.117, allocations: 19.98 kB / 342.9 MB, free: 5.043 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001013/0.1171, allocations: 35.83 kB / 342.9 MB, free: 5.008 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.65e-05/0.1171, allocations: 12.05 kB / 342.9 MB, free: 4.996 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001674/0.1173, allocations: 164.4 kB / 343.1 MB, free: 4.836 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1173, allocations: 0 / 343.1 MB, free: 4.836 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004034/0.1177, allocations: 79.84 kB / 343.2 MB, free: 4.758 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.00113/0.1188, allocations: 0.8629 MB / 344 MB, free: 3.863 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005641/0.1194, allocations: 286.5 kB / 344.3 MB, free: 3.57 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.1194, allocations: 0 / 344.3 MB, free: 3.57 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002798/0.1197, allocations: 195 kB / 344.5 MB, free: 3.367 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003329/0.12, allocations: 40.36 kB / 344.5 MB, free: 3.328 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003966/0.124, allocations: 2.776 MB / 347.3 MB, free: 432 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004555/0.1245, allocations: 0.7636 MB / 348.1 MB, free: 15.63 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001225/0.1246, allocations: 26.28 kB / 348.1 MB, free: 15.61 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000128/0.1248, allocations: 83.41 kB / 348.2 MB, free: 15.52 MB / 302.1 MB Notification: Performance of SimCode: time 1.072e-06/0.1248, allocations: 0 / 348.2 MB, free: 15.52 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01785/0.1426, allocations: 5.048 MB / 353.2 MB, free: 10.48 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002072/0.1429, allocations: 236.3 kB / 353.5 MB, free: 10.22 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.904/2.047, allocations: 7.875 kB / 353.5 MB, free: 10.21 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