Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001551/0.001551, allocations: 114.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001433/0.001433, allocations: 200.5 kB / 19.36 MB, free: 3.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 59.69 kB / 308.4 MB, free: 15.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09691/0.0981, allocations: 50.54 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003691/0.1018, allocations: 2.88 MB / 361.8 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001148/0.103, allocations: 0.7711 MB / 362.6 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001088/0.1031, allocations: 8 kB / 362.6 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001418/0.1033, allocations: 51.5 kB / 362.6 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00016/0.1034, allocations: 87.17 kB / 362.7 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003093/0.1037, allocations: 103.8 kB / 362.8 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003472/0.1041, allocations: 374.4 kB / 363.2 MB, free: 9.031 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002041/0.1043, allocations: 123.2 kB / 363.3 MB, free: 8.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00014/0.1045, allocations: 135.5 kB / 363.4 MB, free: 8.777 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001969/0.1047, allocations: 151.4 kB / 363.6 MB, free: 8.629 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.71e-05/0.1047, allocations: 32 kB / 363.6 MB, free: 8.598 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.584e-05/0.1048, allocations: 32 kB / 363.6 MB, free: 8.566 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.531e-05/0.1048, allocations: 71.75 kB / 363.7 MB, free: 8.496 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001454/0.105, allocations: 167.1 kB / 363.9 MB, free: 8.332 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003477/0.1054, allocations: 370.7 kB / 364.2 MB, free: 7.969 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.1054, allocations: 0 / 364.2 MB, free: 7.969 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1054, allocations: 0 / 364.2 MB, free: 7.969 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.1054, allocations: 0 / 364.2 MB, free: 7.969 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.000926/0.1063, allocations: 0.6018 MB / 364.8 MB, free: 7.312 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.228e-05/0.1064, allocations: 12.03 kB / 364.8 MB, free: 7.301 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.064e-05/0.1064, allocations: 32.56 kB / 364.9 MB, free: 7.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000322/0.1068, allocations: 276.3 kB / 365.1 MB, free: 6.961 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.747e-05/0.1068, allocations: 72.62 kB / 365.2 MB, free: 6.879 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.052e-05/0.1069, allocations: 32.38 kB / 365.2 MB, free: 6.848 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004347/0.1073, allocations: 301.9 kB / 365.5 MB, free: 6.539 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.1074, allocations: 3.984 kB / 365.5 MB, free: 6.535 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.915e-05/0.1074, allocations: 12 kB / 365.6 MB, free: 6.523 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.1074, allocations: 7.938 kB / 365.6 MB, free: 6.516 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003247/0.1077, allocations: 194.1 kB / 365.8 MB, free: 6.328 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001597/0.1093, allocations: 1.119 MB / 366.9 MB, free: 5.121 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002928/0.1096, allocations: 160.6 kB / 367 MB, free: 4.957 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001303/0.1098, allocations: 80.83 kB / 367.1 MB, free: 4.875 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.995e-05/0.1098, allocations: 0 / 367.1 MB, free: 4.875 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002433/0.1101, allocations: 160.8 kB / 367.3 MB, free: 4.699 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.222e-06/0.1101, allocations: 0 / 367.3 MB, free: 4.699 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.0009957/0.1111, allocations: 387.2 kB / 367.6 MB, free: 4.293 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.835e-05/0.1111, allocations: 106.8 kB / 367.7 MB, free: 4.164 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002076/0.1114, allocations: 224.9 kB / 368 MB, free: 3.934 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.605e-05/0.1114, allocations: 33.7 kB / 368 MB, free: 3.895 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001015/0.1115, allocations: 172.2 kB / 368.2 MB, free: 3.723 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.345e-05/0.1116, allocations: 74.98 kB / 368.2 MB, free: 3.648 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.389e-05/0.1117, allocations: 53.7 kB / 368.3 MB, free: 3.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.1118, allocations: 334.8 kB / 368.6 MB, free: 3.254 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001217/0.1119, allocations: 71.97 kB / 368.7 MB, free: 3.184 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001669/0.1121, allocations: 145.6 kB / 368.8 MB, free: 3.008 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002535/0.1123, allocations: 189.8 kB / 369 MB, free: 2.801 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.1123, allocations: 0 / 369 MB, free: 2.801 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003971/0.1128, allocations: 272.5 kB / 369.3 MB, free: 2.527 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.1128, allocations: 8 kB / 369.3 MB, free: 2.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.1128, allocations: 0 / 369.3 MB, free: 2.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002558/0.113, allocations: 56.75 kB / 369.3 MB, free: 2.461 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002289/0.1133, allocations: 60.06 kB / 369.4 MB, free: 2.402 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001254/0.1146, allocations: 1.568 MB / 371 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002165/0.1148, allocations: 39.7 kB / 371 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.183e-05/0.1148, allocations: 15.94 kB / 371 MB, free: 0.6445 MB / 302.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.0001458/0.115, allocations: 150.9 kB / 371.2 MB, free: 500 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.652e-05/0.115, allocations: 27.72 kB / 371.2 MB, free: 472 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.873e-05/0.1151, allocations: 30.11 kB / 371.2 MB, free: 444 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.1151, allocations: 4 kB / 371.2 MB, free: 440 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.813e-06/0.1151, allocations: 0 / 371.2 MB, free: 440 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.389e-06/0.1151, allocations: 0 / 371.2 MB, free: 440 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003155/0.1154, allocations: 321.4 kB / 371.5 MB, free: 68 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.1154, allocations: 0 / 371.5 MB, free: 68 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001701/0.1156, allocations: 31.98 kB / 371.6 MB, free: 36 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1898/0.3054, allocations: 44.83 kB / 371.6 MB, free: 20.17 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.602e-05/0.3055, allocations: 6.938 kB / 371.6 MB, free: 20.17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009864/0.3065, allocations: 1.419 MB / 373 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.3065, allocations: 1.094 kB / 373 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006469/0.3071, allocations: 325.9 kB / 373.4 MB, free: 18.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001006/0.3072, allocations: 118.8 kB / 373.5 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.646e-05/0.3073, allocations: 8.875 kB / 373.5 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001722/0.3075, allocations: 14.33 kB / 373.5 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.221e-05/0.3076, allocations: 30.67 kB / 373.5 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.738e-05/0.3076, allocations: 6.391 kB / 373.5 MB, free: 18.68 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001486/0.3077, allocations: 164.3 kB / 373.7 MB, free: 18.6 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.3077, allocations: 0.8438 kB / 373.7 MB, free: 18.6 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004023/0.3082, allocations: 77.98 kB / 373.8 MB, free: 18.6 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: 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.0001203/0.3083, allocations: 107.2 kB / 373.9 MB, free: 18.51 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005171/0.3088, allocations: 287.8 kB / 374.2 MB, free: 18.4 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.3088, allocations: 0.9062 kB / 374.2 MB, free: 18.4 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002562/0.3091, allocations: 199.2 kB / 374.4 MB, free: 18.29 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003004/0.3094, allocations: 40.86 kB / 374.4 MB, free: 18.29 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001453/0.3109, allocations: 0.659 MB / 375.1 MB, free: 18.04 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000203/0.3111, allocations: 0.763 MB / 375.8 MB, free: 17.34 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.445e-05/0.3112, allocations: 20.78 kB / 375.8 MB, free: 17.33 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.89e-05/0.3112, allocations: 20.58 kB / 375.9 MB, free: 17.32 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3112, allocations: 4 kB / 375.9 MB, free: 17.32 MB / 302.1 MB Notification: Performance of Templates: time 0.007234/0.3185, allocations: 3.062 MB / 378.9 MB, free: 17.15 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches