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: translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001246/0.001252, allocations: 104.5 kB / 18.35 MB, free: 4.645 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.001317/0.001317, allocations: 191 kB / 19.29 MB, free: 3.715 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.574/1.574, allocations: 205.1 MB / 225.2 MB, free: 12.25 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.001374/0.001374, allocations: 47.94 kB / 282.1 MB, free: 2.449 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.1189, allocations: 46.63 MB / 328.7 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004893/0.1239, allocations: 2.827 MB / 331.6 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001348/0.1253, allocations: 0.7681 MB / 332.3 MB, free: 128 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001363/0.1254, allocations: 4 kB / 332.3 MB, free: 124 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001722/0.1256, allocations: 51.5 kB / 332.4 MB, free: 72 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001946/0.1258, allocations: 87.19 kB / 332.5 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003669/0.1262, allocations: 99.75 kB / 332.6 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003954/0.1266, allocations: 382.3 kB / 332.9 MB, free: 15.51 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002577/0.1269, allocations: 115.3 kB / 333 MB, free: 15.4 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001478/0.127, allocations: 135.5 kB / 333.2 MB, free: 15.27 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002429/0.1273, allocations: 155.4 kB / 333.3 MB, free: 15.11 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.421e-05/0.1273, allocations: 32 kB / 333.4 MB, free: 15.08 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.565e-05/0.1274, allocations: 36 kB / 333.4 MB, free: 15.05 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.99e-05/0.1275, allocations: 63.77 kB / 333.5 MB, free: 14.98 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001942/0.1277, allocations: 175.2 kB / 333.6 MB, free: 14.81 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004624/0.1282, allocations: 366.6 kB / 334 MB, free: 14.45 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.1282, allocations: 0 / 334 MB, free: 14.45 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1282, allocations: 0 / 334 MB, free: 14.45 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.475e-06/0.1282, allocations: 0 / 334 MB, free: 14.45 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.00115/0.1294, allocations: 0.5979 MB / 334.6 MB, free: 13.8 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.1294, allocations: 12.03 kB / 334.6 MB, free: 13.79 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.327e-05/0.1295, allocations: 32.56 kB / 334.6 MB, free: 13.76 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004498/0.13, allocations: 280.3 kB / 334.9 MB, free: 13.45 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.384e-05/0.1301, allocations: 76.62 kB / 335 MB, free: 13.36 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.28e-05/0.1301, allocations: 28.38 kB / 335 MB, free: 13.33 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004812/0.1306, allocations: 301.9 kB / 335.3 MB, free: 13.02 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.1306, allocations: 0 / 335.3 MB, free: 13.02 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.16e-05/0.1307, allocations: 15.98 kB / 335.3 MB, free: 13.01 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/0.1307, allocations: 8 kB / 335.3 MB, free: 13 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003466/0.131, allocations: 198.1 kB / 335.5 MB, free: 12.81 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001657/0.1327, allocations: 1.115 MB / 336.6 MB, free: 11.61 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003023/0.133, allocations: 154.5 kB / 336.8 MB, free: 11.45 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001352/0.1332, allocations: 80.83 kB / 336.9 MB, free: 11.36 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.384e-05/0.1332, allocations: 0 / 336.9 MB, free: 11.36 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002647/0.1335, allocations: 169.8 kB / 337 MB, free: 11.18 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.623e-06/0.1335, allocations: 0 / 337 MB, free: 11.18 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001059/0.1345, allocations: 387.1 kB / 337.4 MB, free: 10.77 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.158e-05/0.1346, allocations: 106.8 kB / 337.5 MB, free: 10.64 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000219/0.1349, allocations: 221 kB / 337.7 MB, free: 10.41 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.43e-05/0.1349, allocations: 29.7 kB / 337.8 MB, free: 10.38 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.135, allocations: 184.1 kB / 337.9 MB, free: 10.2 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.029e-05/0.1351, allocations: 67 kB / 338 MB, free: 10.13 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.708e-05/0.1352, allocations: 57.69 kB / 338.1 MB, free: 10.07 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.1353, allocations: 338.8 kB / 338.4 MB, free: 9.727 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001287/0.1355, allocations: 63.97 kB / 338.5 MB, free: 9.664 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001688/0.1356, allocations: 152.5 kB / 338.6 MB, free: 9.484 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002683/0.1359, allocations: 184.2 kB / 338.8 MB, free: 9.281 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.1359, allocations: 3.938 kB / 338.8 MB, free: 9.277 MB / 286.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004432/0.1364, allocations: 279.8 kB / 339.1 MB, free: 8.996 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.1364, allocations: 7.984 kB / 339.1 MB, free: 8.988 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.1364, allocations: 4 kB / 339.1 MB, free: 8.984 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002715/0.1367, allocations: 48.81 kB / 339.1 MB, free: 8.934 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002104/0.1369, allocations: 56.05 kB / 339.2 MB, free: 8.879 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001359/0.1383, allocations: 1.568 MB / 340.7 MB, free: 7.176 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002226/0.1385, allocations: 39.61 kB / 340.8 MB, free: 7.137 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.652e-05/0.1386, allocations: 12 kB / 340.8 MB, free: 7.125 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.0001501/0.1387, allocations: 153.8 kB / 340.9 MB, free: 6.965 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.448e-05/0.1388, allocations: 23.81 kB / 341 MB, free: 6.941 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.723e-05/0.1388, allocations: 22.19 kB / 341 MB, free: 6.922 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.1388, allocations: 4 kB / 341 MB, free: 6.918 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.033e-06/0.1388, allocations: 0 / 341 MB, free: 6.918 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.1388, allocations: 3.984 kB / 341 MB, free: 6.914 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003332/0.1392, allocations: 325.3 kB / 341.3 MB, free: 6.547 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1392, allocations: 0 / 341.3 MB, free: 6.547 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001672/0.1394, allocations: 31.98 kB / 341.3 MB, free: 6.516 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000179/0.1395, allocations: 52.81 kB / 341.4 MB, free: 6.461 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.853e-05/0.1396, allocations: 8 kB / 341.4 MB, free: 6.453 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001251/0.1408, allocations: 1.418 MB / 342.8 MB, free: 4.895 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.1408, allocations: 0 / 342.8 MB, free: 4.895 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006024/0.1415, allocations: 330.3 kB / 343.1 MB, free: 4.551 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001168/0.1416, allocations: 124.7 kB / 343.3 MB, free: 4.41 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.426e-05/0.1416, allocations: 4 kB / 343.3 MB, free: 4.406 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001647/0.1418, allocations: 15.98 kB / 343.3 MB, free: 4.391 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.89e-05/0.1419, allocations: 31.95 kB / 343.3 MB, free: 4.359 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.305e-05/0.1419, allocations: 4.062 kB / 343.3 MB, free: 4.355 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001524/0.1421, allocations: 164.5 kB / 343.5 MB, free: 4.195 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.1421, allocations: 0 / 343.5 MB, free: 4.195 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003566/0.1424, allocations: 79.84 kB / 343.6 MB, free: 4.117 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.0001638/0.1426, allocations: 107.2 kB / 343.7 MB, free: 4.004 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005487/0.1432, allocations: 294.8 kB / 343.9 MB, free: 3.703 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.1432, allocations: 4.062 kB / 344 MB, free: 3.699 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002854/0.1435, allocations: 190.5 kB / 344.1 MB, free: 3.5 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002931/0.1438, allocations: 40.34 kB / 344.2 MB, free: 3.461 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00156/0.1453, allocations: 0.6551 MB / 344.8 MB, free: 2.777 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003659/0.1457, allocations: 0.7597 MB / 345.6 MB, free: 1.992 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.595e-05/0.1458, allocations: 22.3 kB / 345.6 MB, free: 1.969 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.581e-05/0.1459, allocations: 19.44 kB / 345.6 MB, free: 1.949 MB / 286.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1459, allocations: 0 / 345.6 MB, free: 1.949 MB / 286.1 MB Notification: Performance of Templates: time 0.006735/0.1526, allocations: 3.068 MB / 348.7 MB, free: 14.89 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (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 & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches