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.001513/0.001513, allocations: 113.3 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001761/0.001761, allocations: 207.9 kB / 19.41 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00113/0.00113, allocations: 67.88 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2239/0.2251, allocations: 50.54 MB / 410 MB, free: 1.633 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003659/0.2287, allocations: 2.882 MB / 412.8 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001236/0.23, allocations: 0.7672 MB / 413.6 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001161/0.2301, allocations: 4 kB / 413.6 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001429/0.2303, allocations: 47.52 kB / 413.7 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001637/0.2305, allocations: 95.17 kB / 413.7 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003046/0.2308, allocations: 107.8 kB / 413.9 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003524/0.2311, allocations: 370.4 kB / 414.2 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002053/0.2314, allocations: 123.3 kB / 414.3 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001429/0.2315, allocations: 139.5 kB / 414.5 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000186/0.2317, allocations: 151.3 kB / 414.6 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.961e-05/0.2318, allocations: 32 kB / 414.6 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.243e-05/0.2318, allocations: 28 kB / 414.7 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.791e-05/0.2319, allocations: 71.81 kB / 414.7 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001541/0.2321, allocations: 163.2 kB / 414.9 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003836/0.2324, allocations: 374.3 kB / 415.3 MB, free: 12.29 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.2325, allocations: 0 / 415.3 MB, free: 12.29 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2325, allocations: 0 / 415.3 MB, free: 12.29 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.453e-06/0.2325, allocations: 4 kB / 415.3 MB, free: 12.28 MB / 334.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.0009718/0.2335, allocations: 0.6053 MB / 415.9 MB, free: 11.63 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.2335, allocations: 12.03 kB / 415.9 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.142e-05/0.2336, allocations: 36.7 kB / 415.9 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003352/0.2339, allocations: 272.5 kB / 416.2 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.299e-05/0.234, allocations: 76.62 kB / 416.3 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.416e-05/0.2341, allocations: 44.3 kB / 416.3 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004854/0.2346, allocations: 297.9 kB / 416.6 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.2346, allocations: 0 / 416.6 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.911e-05/0.2346, allocations: 12 kB / 416.6 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.2346, allocations: 8 kB / 416.6 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003436/0.235, allocations: 194.1 kB / 416.8 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001577/0.2366, allocations: 1.12 MB / 417.9 MB, free: 9.43 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002883/0.2369, allocations: 158.5 kB / 418.1 MB, free: 9.266 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001344/0.237, allocations: 83.06 kB / 418.2 MB, free: 9.184 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.215e-05/0.237, allocations: 4 kB / 418.2 MB, free: 9.18 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002272/0.2373, allocations: 153.4 kB / 418.3 MB, free: 9.012 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.603e-06/0.2373, allocations: 0 / 418.3 MB, free: 9.012 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001021/0.2383, allocations: 391.6 kB / 418.7 MB, free: 8.602 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.401e-05/0.2384, allocations: 110.8 kB / 418.8 MB, free: 8.469 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002054/0.2386, allocations: 217 kB / 419 MB, free: 8.246 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.543e-05/0.2386, allocations: 37.64 kB / 419.1 MB, free: 8.203 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001072/0.2387, allocations: 176.5 kB / 419.2 MB, free: 8.027 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.508e-05/0.2388, allocations: 83.41 kB / 419.3 MB, free: 7.945 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.815e-05/0.2389, allocations: 57.66 kB / 419.4 MB, free: 7.883 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.239, allocations: 334.8 kB / 419.7 MB, free: 7.547 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001258/0.2392, allocations: 67.97 kB / 419.8 MB, free: 7.48 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001755/0.2393, allocations: 153.5 kB / 419.9 MB, free: 7.297 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000255/0.2396, allocations: 184.2 kB / 420.1 MB, free: 7.094 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.2396, allocations: 0 / 420.1 MB, free: 7.094 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004218/0.24, allocations: 272.5 kB / 420.4 MB, free: 6.82 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.2401, allocations: 8 kB / 420.4 MB, free: 6.812 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.2401, allocations: 0 / 420.4 MB, free: 6.812 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002601/0.2403, allocations: 57.03 kB / 420.4 MB, free: 6.754 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002175/0.2406, allocations: 55.91 kB / 420.5 MB, free: 6.699 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001297/0.2419, allocations: 1.569 MB / 422 MB, free: 4.992 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002333/0.2421, allocations: 43.89 kB / 422.1 MB, free: 4.949 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.391e-05/0.2421, allocations: 12 kB / 422.1 MB, free: 4.938 MB / 334.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.000135/0.2423, allocations: 153.6 kB / 422.3 MB, free: 4.777 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.394e-05/0.2423, allocations: 23.86 kB / 422.3 MB, free: 4.754 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.554e-05/0.2424, allocations: 26.17 kB / 422.3 MB, free: 4.727 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.616e-06/0.2424, allocations: 0 / 422.3 MB, free: 4.727 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2424, allocations: 0 / 422.3 MB, free: 4.727 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.223e-05/0.2425, allocations: 116.9 kB / 422.4 MB, free: 4.594 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.832e-05/0.2425, allocations: 12 kB / 422.4 MB, free: 4.582 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001689/0.2427, allocations: 11.98 kB / 422.4 MB, free: 4.57 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.622e-05/0.2428, allocations: 27.91 kB / 422.5 MB, free: 4.543 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005395/0.2433, allocations: 293 kB / 422.7 MB, free: 4.25 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004502/0.2438, allocations: 430.4 kB / 423.2 MB, free: 3.812 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001177/0.2439, allocations: 72 kB / 423.2 MB, free: 3.742 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001265/0.2441, allocations: 160.5 kB / 423.4 MB, free: 3.59 MB / 334.1 MB Notification: Performance of Backend: time 4.51e-07/0.2441, allocations: 0 / 423.4 MB, free: 3.59 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007291/0.2448, allocations: 313.3 kB / 423.7 MB, free: 3.262 MB / 334.1 MB Notification: Performance of SimCode: time 0.001027/0.2459, allocations: 1.021 MB / 424.7 MB, free: 2.195 MB / 334.1 MB Notification: Performance of Templates: time 0.006616/0.2525, allocations: 3.173 MB / 427.9 MB, free: 15.05 MB / 350.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 -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