Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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.001353/0.001353, allocations: 101 kB / 17.59 MB, free: 5.441 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.001182/0.001182, allocations: 187.3 kB / 18.51 MB, free: 4.531 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.339/1.339, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 37.81 kB / 301.3 MB, free: 5.879 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1056, allocations: 49.46 MB / 350.7 MB, free: 4.414 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004966/0.1106, allocations: 2.859 MB / 353.6 MB, free: 1.531 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00163/0.1122, allocations: 0.7323 MB / 354.3 MB, free: 0.793 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003332/0.1126, allocations: 7.938 kB / 354.3 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002596/0.1129, allocations: 47.5 kB / 354.4 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003768/0.1133, allocations: 91.19 kB / 354.5 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004616/0.1138, allocations: 103.8 kB / 354.6 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005173/0.1143, allocations: 374.3 kB / 354.9 MB, free: 184 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002676/0.1146, allocations: 119.2 kB / 355.1 MB, free: 64 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002383/0.1148, allocations: 139.6 kB / 355.2 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002771/0.1151, allocations: 151.4 kB / 355.3 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.522e-05/0.1152, allocations: 28 kB / 355.4 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.869e-05/0.1153, allocations: 32 kB / 355.4 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.457e-05/0.1154, allocations: 71.67 kB / 355.5 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001973/0.1156, allocations: 163.2 kB / 355.6 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004252/0.116, allocations: 359 kB / 356 MB, free: 15.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.116, allocations: 4 kB / 356 MB, free: 15.13 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.116, allocations: 4 kB / 356 MB, free: 15.13 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.743e-05/0.1161, allocations: 0 / 356 MB, free: 15.13 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.001162/0.1172, allocations: 0.6018 MB / 356.6 MB, free: 14.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.1173, allocations: 8.031 kB / 356.6 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001021/0.1174, allocations: 40.56 kB / 356.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003573/0.1178, allocations: 268.8 kB / 356.9 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.584e-05/0.1179, allocations: 76.61 kB / 357 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.339e-05/0.1179, allocations: 28.38 kB / 357 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005305/0.1185, allocations: 301.8 kB / 357.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/0.1185, allocations: 0 / 357.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.214e-05/0.1185, allocations: 16 kB / 357.3 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.546e-05/0.1186, allocations: 16 kB / 357.3 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000424/0.119, allocations: 190.1 kB / 357.5 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001856/0.1209, allocations: 1.123 MB / 358.6 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003121/0.1212, allocations: 158.6 kB / 358.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001376/0.1213, allocations: 84.77 kB / 358.9 MB, free: 12.03 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.092e-05/0.1214, allocations: 4 kB / 358.9 MB, free: 12.03 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003506/0.1217, allocations: 156.8 kB / 359 MB, free: 11.86 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.943e-06/0.1217, allocations: 0 / 359 MB, free: 11.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001101/0.1228, allocations: 383.1 kB / 359.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.378e-05/0.1229, allocations: 106.8 kB / 359.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002889/0.1232, allocations: 229 kB / 359.7 MB, free: 11.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.405e-05/0.1233, allocations: 29.7 kB / 359.8 MB, free: 11.05 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000118/0.1234, allocations: 184.1 kB / 359.9 MB, free: 10.87 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.007e-05/0.1235, allocations: 75 kB / 360 MB, free: 10.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.559e-05/0.1236, allocations: 53.7 kB / 360.1 MB, free: 10.74 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.1237, allocations: 338.8 kB / 360.4 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000136/0.1239, allocations: 63.97 kB / 360.5 MB, free: 10.34 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001744/0.1241, allocations: 140.6 kB / 360.6 MB, free: 10.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002824/0.1243, allocations: 194 kB / 360.8 MB, free: 9.953 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.1244, allocations: 0 / 360.8 MB, free: 9.953 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004789/0.1248, allocations: 276.3 kB / 361.1 MB, free: 9.676 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.1249, allocations: 4 kB / 361.1 MB, free: 9.672 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.578e-05/0.1249, allocations: 4 kB / 361.1 MB, free: 9.668 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002733/0.1252, allocations: 57.03 kB / 361.1 MB, free: 9.609 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000205/0.1254, allocations: 55.84 kB / 361.2 MB, free: 9.555 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001471/0.1269, allocations: 1.568 MB / 362.7 MB, free: 7.848 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002524/0.1271, allocations: 39.77 kB / 362.8 MB, free: 7.809 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.435e-05/0.1272, allocations: 12 kB / 362.8 MB, free: 7.797 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.0001841/0.1274, allocations: 149.7 kB / 362.9 MB, free: 7.641 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.121e-05/0.1274, allocations: 23.72 kB / 363 MB, free: 7.617 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.962e-05/0.1275, allocations: 30.17 kB / 363 MB, free: 7.594 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.1275, allocations: 4 kB / 363 MB, free: 7.59 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-06/0.1275, allocations: 0 / 363 MB, free: 7.59 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.1275, allocations: 0 / 363 MB, free: 7.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003343/0.1278, allocations: 321.4 kB / 363.3 MB, free: 7.227 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.1278, allocations: 0 / 363.3 MB, free: 7.227 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001637/0.128, allocations: 43.91 kB / 363.3 MB, free: 7.184 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000182/0.1282, allocations: 48.81 kB / 363.4 MB, free: 7.133 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.257e-05/0.1282, allocations: 8 kB / 363.4 MB, free: 7.125 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001163/0.1294, allocations: 1.426 MB / 364.8 MB, free: 5.555 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.1294, allocations: 0 / 364.8 MB, free: 5.555 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006013/0.13, allocations: 315.3 kB / 365.1 MB, free: 5.227 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001449/0.1302, allocations: 128.8 kB / 365.3 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.687e-05/0.1302, allocations: 0 / 365.3 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001638/0.1304, allocations: 15.98 kB / 365.3 MB, free: 5.066 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.394e-05/0.1305, allocations: 35.89 kB / 365.3 MB, free: 5.031 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.529e-05/0.1305, allocations: 11.98 kB / 365.3 MB, free: 5.02 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001414/0.1307, allocations: 156.5 kB / 365.5 MB, free: 4.867 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1307, allocations: 0 / 365.5 MB, free: 4.867 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003753/0.1311, allocations: 79.84 kB / 365.6 MB, free: 4.789 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.0001599/0.1312, allocations: 112.6 kB / 365.7 MB, free: 4.672 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000606/0.1318, allocations: 304.3 kB / 366 MB, free: 4.363 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.1319, allocations: 0 / 366 MB, free: 4.363 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002756/0.1321, allocations: 194.6 kB / 366.2 MB, free: 4.16 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003084/0.1325, allocations: 32.86 kB / 366.2 MB, free: 4.129 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001651/0.1341, allocations: 0.6919 MB / 366.9 MB, free: 3.402 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002958/0.1344, allocations: 0.7597 MB / 367.6 MB, free: 2.613 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.909e-05/0.1345, allocations: 27.42 kB / 367.7 MB, free: 2.586 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1345, allocations: 0 / 367.7 MB, free: 2.586 MB / 302.1 MB Notification: Performance of Templates: time 0.1637/0.2982, allocations: 4.158 MB / 371.8 MB, free: 24.87 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches