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.001159/0.001159, allocations: 105.5 kB / 17.59 MB, free: 5.445 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.001252/0.001252, allocations: 187.6 kB / 18.51 MB, free: 4.527 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.33/1.33, allocations: 222.9 MB / 242.2 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001735/0.001735, allocations: 43.52 kB / 301.3 MB, free: 5.902 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.114, allocations: 49.45 MB / 350.7 MB, free: 4.445 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004361/0.1184, allocations: 3.123 MB / 353.9 MB, free: 1.297 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001341/0.1198, allocations: 0.7556 MB / 354.6 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001554/0.1199, allocations: 8 kB / 354.6 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001728/0.1201, allocations: 59.42 kB / 354.7 MB, free: 480 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001985/0.1203, allocations: 107 kB / 354.8 MB, free: 372 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003349/0.1207, allocations: 115.7 kB / 354.9 MB, free: 256 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003997/0.1211, allocations: 406.2 kB / 355.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002653/0.1214, allocations: 147.7 kB / 355.4 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001965/0.1216, allocations: 155.4 kB / 355.6 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000208/0.1218, allocations: 179.2 kB / 355.8 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.501e-05/0.1219, allocations: 36 kB / 355.8 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.187e-05/0.1219, allocations: 32 kB / 355.8 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.329e-05/0.122, allocations: 83.73 kB / 355.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001732/0.1222, allocations: 187.1 kB / 356.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000402/0.1226, allocations: 422.7 kB / 356.5 MB, free: 14.63 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1226, allocations: 0 / 356.5 MB, free: 14.63 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1226, allocations: 4 kB / 356.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.1226, allocations: 0 / 356.5 MB, free: 14.62 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.001105/0.1238, allocations: 0.6431 MB / 357.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/0.1238, allocations: 15.89 kB / 357.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.716e-05/0.1239, allocations: 44.47 kB / 357.2 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003594/0.1243, allocations: 285.2 kB / 357.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.755e-05/0.1244, allocations: 80.62 kB / 357.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.291e-05/0.1244, allocations: 28.38 kB / 357.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005594/0.125, allocations: 338.8 kB / 357.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.125, allocations: 0 / 357.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.042e-05/0.1251, allocations: 23.98 kB / 357.9 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.271e-05/0.1251, allocations: 12 kB / 358 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004303/0.1255, allocations: 218.5 kB / 358.2 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001832/0.1274, allocations: 1.356 MB / 359.5 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003224/0.1277, allocations: 166.5 kB / 359.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001574/0.1279, allocations: 92.77 kB / 359.8 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.756e-05/0.1279, allocations: 0 / 359.8 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003592/0.1283, allocations: 161.8 kB / 359.9 MB, free: 10.94 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.463e-06/0.1283, allocations: 0 / 359.9 MB, free: 10.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001144/0.1294, allocations: 405.9 kB / 360.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.753e-05/0.1295, allocations: 106.8 kB / 360.4 MB, free: 10.39 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002599/0.1298, allocations: 254.7 kB / 360.7 MB, free: 10.13 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.078e-05/0.1298, allocations: 37.69 kB / 360.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001308/0.13, allocations: 195.9 kB / 360.9 MB, free: 9.891 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.74e-05/0.13, allocations: 78.98 kB / 361 MB, free: 9.812 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.693e-05/0.1301, allocations: 69.86 kB / 361.1 MB, free: 9.738 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.1303, allocations: 334.8 kB / 361.4 MB, free: 9.402 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001575/0.1304, allocations: 80.62 kB / 361.5 MB, free: 9.324 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002136/0.1307, allocations: 173.5 kB / 361.6 MB, free: 9.109 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003427/0.131, allocations: 241.4 kB / 361.9 MB, free: 8.84 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.131, allocations: 0 / 361.9 MB, free: 8.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006842/0.1317, allocations: 348.3 kB / 362.2 MB, free: 8.492 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.1317, allocations: 7.938 kB / 362.2 MB, free: 8.484 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.1318, allocations: 7.984 kB / 362.2 MB, free: 8.477 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002706/0.132, allocations: 53 kB / 362.3 MB, free: 8.422 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002524/0.1323, allocations: 67.91 kB / 362.3 MB, free: 8.355 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001386/0.1337, allocations: 1.56 MB / 363.9 MB, free: 6.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002671/0.134, allocations: 47.8 kB / 364 MB, free: 6.613 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.268e-05/0.134, allocations: 12 kB / 364 MB, free: 6.602 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.0001557/0.1342, allocations: 153.7 kB / 364.1 MB, free: 6.441 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.942e-05/0.1342, allocations: 31.56 kB / 364.1 MB, free: 6.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.825e-05/0.1343, allocations: 30.11 kB / 364.2 MB, free: 6.383 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.1343, allocations: 4 kB / 364.2 MB, free: 6.379 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.155e-06/0.1343, allocations: 0 / 364.2 MB, free: 6.379 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.1343, allocations: 3.984 kB / 364.2 MB, free: 6.375 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003198/0.1346, allocations: 337.5 kB / 364.5 MB, free: 5.996 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.1347, allocations: 0 / 364.5 MB, free: 5.996 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001912/0.1348, allocations: 35.97 kB / 364.6 MB, free: 5.961 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002/0.1351, allocations: 56.75 kB / 364.6 MB, free: 5.902 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.794e-05/0.1351, allocations: 4 kB / 364.6 MB, free: 5.898 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00115/0.1362, allocations: 1.43 MB / 366 MB, free: 4.328 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1363, allocations: 0 / 366 MB, free: 4.328 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006928/0.137, allocations: 355.3 kB / 366.4 MB, free: 3.961 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001048/0.1371, allocations: 120.8 kB / 366.5 MB, free: 3.824 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.737e-05/0.1371, allocations: 4 kB / 366.5 MB, free: 3.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001868/0.1373, allocations: 19.98 kB / 366.5 MB, free: 3.801 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.648e-05/0.1374, allocations: 31.89 kB / 366.6 MB, free: 3.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.491e-05/0.1374, allocations: 8 kB / 366.6 MB, free: 3.762 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001632/0.1376, allocations: 178 kB / 366.7 MB, free: 3.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1376, allocations: 3.938 kB / 366.7 MB, free: 3.586 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003897/0.138, allocations: 95.89 kB / 366.8 MB, free: 3.492 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.0001362/0.1382, allocations: 109.3 kB / 366.9 MB, free: 3.375 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006371/0.1388, allocations: 322.3 kB / 367.3 MB, free: 3.047 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1388, allocations: 4.688 kB / 367.3 MB, free: 3.043 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003033/0.1391, allocations: 198.5 kB / 367.5 MB, free: 2.836 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002721/0.1394, allocations: 43.08 kB / 367.5 MB, free: 2.793 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001532/0.141, allocations: 0.7092 MB / 368.2 MB, free: 2.051 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003512/0.1413, allocations: 0.7675 MB / 369 MB, free: 1.254 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.39e-05/0.1414, allocations: 23.44 kB / 369 MB, free: 1.23 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1414, allocations: 0 / 369 MB, free: 1.23 MB / 302.1 MB Notification: Performance of Templates: time 0.1519/0.2933, allocations: 4.606 MB / 373.6 MB, free: 24.7 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