Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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: translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001108/0.001108, allocations: 110.8 kB / 17.29 MB, free: 6.215 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.001254/0.001254, allocations: 197.3 kB / 18.21 MB, free: 5.289 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.327/1.327, allocations: 222.9 MB / 241.9 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000992/0.0009921, allocations: 48.86 kB / 300.8 MB, free: 6.203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09074/0.09175, allocations: 49.44 MB / 350.2 MB, free: 4.754 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004125/0.0959, allocations: 3.169 MB / 353.4 MB, free: 1.562 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001309/0.09724, allocations: 0.7479 MB / 354.2 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002526/0.09751, allocations: 8 kB / 354.2 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001959/0.09772, allocations: 43.67 kB / 354.2 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002602/0.09801, allocations: 87.25 kB / 354.3 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003517/0.09837, allocations: 87.91 kB / 354.4 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000471/0.09885, allocations: 422.1 kB / 354.8 MB, free: 176 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002557/0.09912, allocations: 139.7 kB / 354.9 MB, free: 32 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002429/0.09937, allocations: 163.4 kB / 355.1 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002332/0.09961, allocations: 179.2 kB / 355.3 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.044e-05/0.09968, allocations: 32 kB / 355.3 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.18e-05/0.09975, allocations: 36 kB / 355.3 MB, free: 15.63 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.084e-05/0.09982, allocations: 83.73 kB / 355.4 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001656/0.09999, allocations: 183.1 kB / 355.6 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002859/0.1003, allocations: 327.4 kB / 355.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1003, allocations: 0 / 355.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.62e-07/0.1003, allocations: 0 / 355.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.547e-05/0.1003, allocations: 0 / 355.9 MB, free: 15.05 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001011/0.1013, allocations: 0.647 MB / 356.6 MB, free: 14.35 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.4e-05/0.1014, allocations: 15.89 kB / 356.6 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.64e-05/0.1015, allocations: 40.47 kB / 356.6 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00031/0.1018, allocations: 289.2 kB / 356.9 MB, free: 13.97 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.228e-05/0.1019, allocations: 76.62 kB / 357 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.927e-05/0.1019, allocations: 28.38 kB / 357 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005552/0.1025, allocations: 338.9 kB / 357.3 MB, free: 13.51 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.358e-05/0.1025, allocations: 7.938 kB / 357.3 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.551e-05/0.1026, allocations: 19.98 kB / 357.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.251e-05/0.1026, allocations: 8 kB / 357.4 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004273/0.103, allocations: 214.5 kB / 357.6 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001842/0.1049, allocations: 1.36 MB / 358.9 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000322/0.1052, allocations: 164.8 kB / 359.1 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001628/0.1054, allocations: 96.75 kB / 359.2 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.264e-05/0.1054, allocations: 4 kB / 359.2 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003234/0.1057, allocations: 161.1 kB / 359.3 MB, free: 11.36 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.743e-06/0.1058, allocations: 0 / 359.3 MB, free: 11.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001057/0.1068, allocations: 403 kB / 359.7 MB, free: 10.94 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.073e-05/0.1069, allocations: 118.7 kB / 359.9 MB, free: 10.8 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002639/0.1072, allocations: 254.7 kB / 360.1 MB, free: 10.54 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.716e-05/0.1072, allocations: 33.69 kB / 360.1 MB, free: 10.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001185/0.1073, allocations: 199.9 kB / 360.3 MB, free: 10.3 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.203e-05/0.1074, allocations: 74.98 kB / 360.4 MB, free: 10.23 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.183e-05/0.1075, allocations: 61.94 kB / 360.5 MB, free: 10.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.1076, allocations: 346.7 kB / 360.8 MB, free: 9.812 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001668/0.1078, allocations: 80.62 kB / 360.9 MB, free: 9.734 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002123/0.108, allocations: 177.5 kB / 361.1 MB, free: 9.516 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003202/0.1083, allocations: 235.6 kB / 361.3 MB, free: 9.25 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.1083, allocations: 4 kB / 361.3 MB, free: 9.246 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006549/0.109, allocations: 344.1 kB / 361.6 MB, free: 8.902 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.109, allocations: 8 kB / 361.6 MB, free: 8.895 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.109, allocations: 0 / 361.6 MB, free: 8.895 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002436/0.1093, allocations: 57.16 kB / 361.7 MB, free: 8.836 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002422/0.1095, allocations: 63.91 kB / 361.7 MB, free: 8.773 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001236/0.1108, allocations: 1.564 MB / 363.3 MB, free: 7.074 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002676/0.1111, allocations: 47.77 kB / 363.4 MB, free: 7.027 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.225e-05/0.1111, allocations: 12 kB / 363.4 MB, free: 7.016 MB / 302.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.0001457/0.1112, allocations: 152.4 kB / 363.5 MB, free: 6.859 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.935e-05/0.1113, allocations: 31.62 kB / 363.6 MB, free: 6.828 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.962e-05/0.1113, allocations: 34.09 kB / 363.6 MB, free: 6.797 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.1114, allocations: 4 kB / 363.6 MB, free: 6.793 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-06/0.1114, allocations: 0 / 363.6 MB, free: 6.793 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.1114, allocations: 7.984 kB / 363.6 MB, free: 6.785 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003115/0.1117, allocations: 333.4 kB / 363.9 MB, free: 6.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.1117, allocations: 0 / 363.9 MB, free: 6.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001886/0.1119, allocations: 39.97 kB / 364 MB, free: 6.371 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001784/0.1121, allocations: 52.75 kB / 364 MB, free: 6.316 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.792e-05/0.1121, allocations: 8 kB / 364 MB, free: 6.309 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001056/0.1132, allocations: 1.422 MB / 365.4 MB, free: 4.746 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.1132, allocations: 0 / 365.4 MB, free: 4.746 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006537/0.1138, allocations: 354.9 kB / 365.8 MB, free: 4.379 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001053/0.114, allocations: 116.8 kB / 365.9 MB, free: 4.246 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.204e-05/0.114, allocations: 8 kB / 365.9 MB, free: 4.238 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000172/0.1142, allocations: 19.98 kB / 365.9 MB, free: 4.219 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.985e-05/0.1143, allocations: 31.89 kB / 366 MB, free: 4.188 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.364e-05/0.1143, allocations: 4 kB / 366 MB, free: 4.184 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001613/0.1145, allocations: 182 kB / 366.1 MB, free: 4.008 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.423e-06/0.1145, allocations: 4.062 kB / 366.1 MB, free: 4.004 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003662/0.1148, allocations: 91.77 kB / 366.2 MB, free: 3.914 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: 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.0001488/0.115, allocations: 107.2 kB / 366.3 MB, free: 3.797 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005805/0.1156, allocations: 325.2 kB / 366.7 MB, free: 3.469 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.798e-06/0.1156, allocations: 4.125 kB / 366.7 MB, free: 3.465 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002886/0.1159, allocations: 202.5 kB / 366.9 MB, free: 3.254 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002551/0.1162, allocations: 36.34 kB / 366.9 MB, free: 3.215 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001508/0.1177, allocations: 0.8186 MB / 367.7 MB, free: 2.363 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003189/0.118, allocations: 0.7713 MB / 368.5 MB, free: 1.566 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.714e-05/0.1181, allocations: 23.44 kB / 368.5 MB, free: 1.543 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1181, allocations: 0 / 368.5 MB, free: 1.543 MB / 302.1 MB Notification: Performance of Templates: time 0.1418/0.2599, allocations: 4.61 MB / 373.1 MB, free: 24.59 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches