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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00118/0.00118, allocations: 120.5 kB / 18.46 MB, free: 4.617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001181/0.001181, allocations: 194.6 kB / 21.4 MB, free: 1.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.393/1.393, allocations: 225.6 MB / 249.8 MB, free: 3.617 MB / 190.1 MB " [Timeout remaining time 178] 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=24000,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=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001397, allocations: 51.92 kB / 366.8 MB, free: 332 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08995/0.09134, allocations: 52.13 MB / 419 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004395/0.09574, allocations: 3.161 MB / 422.1 MB, free: 8.922 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00121/0.09695, allocations: 0.7516 MB / 422.9 MB, free: 8.164 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001266/0.09707, allocations: 8 kB / 422.9 MB, free: 8.156 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001598/0.09723, allocations: 59.42 kB / 422.9 MB, free: 8.098 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001827/0.09742, allocations: 103 kB / 423 MB, free: 7.996 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003293/0.09775, allocations: 111.7 kB / 423.1 MB, free: 7.887 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004541/0.0982, allocations: 418.1 kB / 423.6 MB, free: 7.477 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002196/0.09842, allocations: 99.75 kB / 423.6 MB, free: 7.371 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002064/0.09863, allocations: 159.5 kB / 423.8 MB, free: 7.215 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002334/0.09886, allocations: 175.2 kB / 424 MB, free: 7.043 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.347e-05/0.09892, allocations: 32 kB / 424 MB, free: 7.012 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.379e-05/0.09899, allocations: 36 kB / 424 MB, free: 6.977 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.343e-05/0.09907, allocations: 87.62 kB / 424.1 MB, free: 6.891 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001949/0.09926, allocations: 187.1 kB / 424.3 MB, free: 6.707 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004546/0.09972, allocations: 426.2 kB / 424.7 MB, free: 6.289 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.09972, allocations: 0 / 424.7 MB, free: 6.289 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.09972, allocations: 0 / 424.7 MB, free: 6.289 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.503e-06/0.09973, allocations: 0 / 424.7 MB, free: 6.289 MB / 350.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.001086/0.1008, allocations: 0.6623 MB / 425.4 MB, free: 5.578 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.302e-05/0.1008, allocations: 11.89 kB / 425.4 MB, free: 5.566 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.18e-05/0.1009, allocations: 40.7 kB / 425.4 MB, free: 5.527 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003729/0.1013, allocations: 289.3 kB / 425.7 MB, free: 5.203 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.142e-05/0.1014, allocations: 80.62 kB / 425.8 MB, free: 5.113 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.515e-05/0.1015, allocations: 32.38 kB / 425.8 MB, free: 5.082 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005863/0.102, allocations: 342.8 kB / 426.2 MB, free: 4.727 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.102, allocations: 0 / 426.2 MB, free: 4.727 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.31e-05/0.1021, allocations: 12 kB / 426.2 MB, free: 4.715 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.08e-05/0.1021, allocations: 12 kB / 426.2 MB, free: 4.703 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004526/0.1025, allocations: 226.4 kB / 426.4 MB, free: 4.484 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001892/0.1044, allocations: 1.349 MB / 427.8 MB, free: 3.035 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000344/0.1048, allocations: 170.5 kB / 427.9 MB, free: 2.859 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001676/0.1049, allocations: 84.77 kB / 428 MB, free: 2.773 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.346e-05/0.105, allocations: 4 kB / 428 MB, free: 2.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002837/0.1053, allocations: 153.8 kB / 428.2 MB, free: 2.598 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.382e-06/0.1053, allocations: 4 kB / 428.2 MB, free: 2.594 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001155/0.1064, allocations: 405.6 kB / 428.6 MB, free: 2.172 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.812e-05/0.1065, allocations: 114.8 kB / 428.7 MB, free: 2.035 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002765/0.1068, allocations: 254.7 kB / 428.9 MB, free: 1.785 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.846e-05/0.1068, allocations: 29.7 kB / 429 MB, free: 1.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001567/0.107, allocations: 212.3 kB / 429.2 MB, free: 1.539 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.212e-05/0.107, allocations: 71.38 kB / 429.2 MB, free: 1.469 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/0.1071, allocations: 66.02 kB / 429.3 MB, free: 1.398 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.1073, allocations: 330.8 kB / 429.6 MB, free: 1.066 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001733/0.1075, allocations: 80.56 kB / 429.7 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002427/0.1077, allocations: 181.5 kB / 429.9 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003658/0.1081, allocations: 236.2 kB / 430.1 MB, free: 0.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.1081, allocations: 0 / 430.1 MB, free: 0.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007013/0.1088, allocations: 348.5 kB / 430.4 MB, free: 156 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.1088, allocations: 6.5 kB / 430.5 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.1088, allocations: 4 kB / 430.5 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002602/0.109, allocations: 56.97 kB / 430.5 MB, free: 88 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002493/0.1093, allocations: 63.91 kB / 430.6 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001509/0.1108, allocations: 1.564 MB / 432.1 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002416/0.111, allocations: 43.72 kB / 432.2 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.614e-05/0.1111, allocations: 19.98 kB / 432.2 MB, free: 14.26 MB / 366.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.0001661/0.1112, allocations: 157.8 kB / 432.4 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.968e-05/0.1113, allocations: 27.86 kB / 432.4 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.82e-05/0.1113, allocations: 34.11 kB / 432.4 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.1113, allocations: 3.938 kB / 432.4 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/0.1113, allocations: 0 / 432.4 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.1113, allocations: 4 kB / 432.4 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003539/0.1117, allocations: 337.4 kB / 432.8 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.1117, allocations: 0 / 432.8 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001919/0.1119, allocations: 35.98 kB / 432.8 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001831/0.1121, allocations: 56.73 kB / 432.8 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.869e-05/0.1121, allocations: 8 kB / 432.9 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001257/0.1134, allocations: 1.422 MB / 434.3 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1134, allocations: 0 / 434.3 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007352/0.1141, allocations: 355.2 kB / 434.6 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001114/0.1142, allocations: 120.8 kB / 434.7 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.601e-05/0.1142, allocations: 4 kB / 434.7 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000172/0.1144, allocations: 24.05 kB / 434.8 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.414e-05/0.1145, allocations: 31.89 kB / 434.8 MB, free: 11.42 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.548e-05/0.1145, allocations: 8 kB / 434.8 MB, free: 11.41 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001782/0.1147, allocations: 186 kB / 435 MB, free: 11.23 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1147, allocations: 0 / 435 MB, free: 11.23 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000367/0.1151, allocations: 87.84 kB / 435.1 MB, free: 11.14 MB / 366.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.00013/0.1152, allocations: 111.1 kB / 435.2 MB, free: 11.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000602/0.1158, allocations: 302.5 kB / 435.5 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1158, allocations: 0 / 435.5 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003086/0.1161, allocations: 199.8 kB / 435.7 MB, free: 10.5 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002545/0.1164, allocations: 35.47 kB / 435.7 MB, free: 10.47 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001507/0.1179, allocations: 0.7277 MB / 436.4 MB, free: 9.715 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003729/0.1182, allocations: 0.7752 MB / 437.2 MB, free: 8.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.319e-05/0.1183, allocations: 19.44 kB / 437.2 MB, free: 8.891 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1183, allocations: 0 / 437.2 MB, free: 8.891 MB / 366.1 MB Notification: Performance of Templates: time 0.006953/0.1253, allocations: 4.661 MB / 441.9 MB, free: 4.234 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.116739838151261]