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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001355/0.001355, allocations: 112.4 kB / 21.19 MB, free: 0.7031 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00152/0.00152, allocations: 208.6 kB / 24.49 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.528/1.528, allocations: 207.6 MB / 235.3 MB, free: 9.996 MB / 190.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003102/0.003102, allocations: 59.92 kB / 347.2 MB, free: 10.11 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3213/0.3244, allocations: 49.16 MB / 396.4 MB, free: 8.949 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.00417/0.3285, allocations: 2.845 MB / 399.2 MB, free: 6.969 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001449/0.33, allocations: 0.7866 MB / 400 MB, free: 6.402 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001587/0.3302, allocations: 9.188 kB / 400 MB, free: 6.398 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001924/0.3303, allocations: 52.88 kB / 400.1 MB, free: 6.367 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001802/0.3305, allocations: 89.25 kB / 400.1 MB, free: 6.301 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003712/0.3309, allocations: 104.3 kB / 400.2 MB, free: 6.242 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004195/0.3313, allocations: 383.1 kB / 400.6 MB, free: 6.047 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002062/0.3315, allocations: 88.19 kB / 400.7 MB, free: 5.996 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001534/0.3317, allocations: 143.6 kB / 400.8 MB, free: 5.93 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002299/0.3319, allocations: 150.7 kB / 401 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.135e-05/0.332, allocations: 31.25 kB / 401 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.268e-05/0.332, allocations: 30.28 kB / 401.1 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.286e-05/0.3321, allocations: 69.47 kB / 401.1 MB, free: 5.809 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001626/0.3323, allocations: 166.7 kB / 401.3 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005042/0.3328, allocations: 362.7 kB / 401.6 MB, free: 5.57 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.3328, allocations: 1.344 kB / 401.6 MB, free: 5.57 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.3328, allocations: 8.547 kB / 401.6 MB, free: 5.562 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.3328, allocations: 0 / 401.6 MB, free: 5.562 MB / 318.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.001025/0.3338, allocations: 0.5355 MB / 402.2 MB, free: 5.156 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.3339, allocations: 14.11 kB / 402.2 MB, free: 5.152 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.632e-05/0.3339, allocations: 75.41 kB / 402.3 MB, free: 5.086 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.961e-05/0.334, allocations: 34.56 kB / 402.3 MB, free: 5.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003219/0.3343, allocations: 200.5 kB / 402.5 MB, free: 4.895 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.839e-05/0.3344, allocations: 128 kB / 402.6 MB, free: 4.762 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.498e-05/0.3345, allocations: 27.03 kB / 402.6 MB, free: 4.754 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004822/0.335, allocations: 305.5 kB / 402.9 MB, free: 4.594 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.335, allocations: 4 kB / 403 MB, free: 4.59 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.003e-05/0.335, allocations: 12.11 kB / 403 MB, free: 4.582 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.106e-05/0.335, allocations: 7.156 kB / 403 MB, free: 4.582 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003459/0.3354, allocations: 189.1 kB / 403.2 MB, free: 4.52 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001605/0.337, allocations: 1.084 MB / 404.2 MB, free: 3.73 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003114/0.3373, allocations: 152 kB / 404.4 MB, free: 3.652 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000126/0.3374, allocations: 75.53 kB / 404.5 MB, free: 3.617 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.795e-05/0.3374, allocations: 2.125 kB / 404.5 MB, free: 3.617 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002562/0.3377, allocations: 151.5 kB / 404.6 MB, free: 3.516 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.372e-06/0.3377, allocations: 0 / 404.6 MB, free: 3.516 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001006/0.3387, allocations: 309.2 kB / 404.9 MB, free: 3.391 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.688e-05/0.3387, allocations: 107.3 kB / 405 MB, free: 3.266 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002616/0.339, allocations: 233.3 kB / 405.2 MB, free: 3.113 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.252e-05/0.339, allocations: 35.58 kB / 405.3 MB, free: 3.074 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001087/0.3391, allocations: 175.8 kB / 405.5 MB, free: 2.926 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.278e-05/0.3392, allocations: 75.45 kB / 405.5 MB, free: 2.867 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.34e-05/0.3393, allocations: 64.14 kB / 405.6 MB, free: 2.824 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.642e-05/0.3394, allocations: 335.7 kB / 405.9 MB, free: 2.5 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001338/0.3395, allocations: 65.86 kB / 406 MB, free: 2.477 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001813/0.3397, allocations: 151.7 kB / 406.1 MB, free: 2.355 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002488/0.3399, allocations: 185.8 kB / 406.3 MB, free: 2.227 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.3399, allocations: 1.188 kB / 406.3 MB, free: 2.227 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004017/0.3403, allocations: 272.5 kB / 406.6 MB, free: 2.094 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.3404, allocations: 5.969 kB / 406.6 MB, free: 2.094 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.094e-06/0.3404, allocations: 2.953 kB / 406.6 MB, free: 2.094 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002675/0.3406, allocations: 54.95 kB / 406.6 MB, free: 2.074 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002114/0.3408, allocations: 54.23 kB / 406.7 MB, free: 2.066 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001032/0.3419, allocations: 1.467 MB / 408.2 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002249/0.3421, allocations: 38.78 kB / 408.2 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.156e-05/0.3421, allocations: 8.859 kB / 408.2 MB, free: 0.6016 MB / 318.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.0001202/0.3422, allocations: 153.9 kB / 408.4 MB, free: 468 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.178e-05/0.3423, allocations: 27.45 kB / 408.4 MB, free: 452 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.532e-05/0.3423, allocations: 26.12 kB / 408.4 MB, free: 428 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/0.3423, allocations: 1.375 kB / 408.4 MB, free: 428 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.3423, allocations: 5.984 kB / 408.4 MB, free: 424 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.3423, allocations: 5.297 kB / 408.4 MB, free: 420 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000286/0.3426, allocations: 297.3 kB / 408.7 MB, free: 192 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.3426, allocations: 0.6562 kB / 408.7 MB, free: 192 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001601/0.3428, allocations: 30.11 kB / 408.7 MB, free: 192 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001771/0.343, allocations: 56.12 kB / 408.8 MB, free: 168 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.973e-05/0.343, allocations: 6.734 kB / 408.8 MB, free: 164 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001283/0.3443, allocations: 1.317 MB / 410.1 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.205e-06/0.3443, allocations: 0 / 410.1 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006968/0.345, allocations: 329.2 kB / 410.4 MB, free: 14.68 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.967e-05/0.345, allocations: 47.78 kB / 410.5 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.727e-05/0.3451, allocations: 5.766 kB / 410.5 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001721/0.3453, allocations: 18.97 kB / 410.5 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.365e-05/0.3453, allocations: 28.58 kB / 410.5 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.48e-05/0.3454, allocations: 6.156 kB / 410.5 MB, free: 14.64 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001784/0.3455, allocations: 161.5 kB / 410.7 MB, free: 14.54 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3455, allocations: 0 / 410.7 MB, free: 14.54 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003751/0.3459, allocations: 83.47 kB / 410.8 MB, free: 14.52 MB / 334.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.001035/0.347, allocations: 0.8582 MB / 411.6 MB, free: 13.81 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005669/0.3475, allocations: 284.3 kB / 411.9 MB, free: 13.64 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.237e-06/0.3475, allocations: 1.375 kB / 411.9 MB, free: 13.64 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003057/0.3478, allocations: 188.1 kB / 412.1 MB, free: 13.5 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003337/0.3482, allocations: 36.81 kB / 412.1 MB, free: 13.49 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004379/0.3525, allocations: 2.607 MB / 414.7 MB, free: 11.65 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005229/0.3531, allocations: 0.7575 MB / 415.5 MB, free: 10.95 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001175/0.3532, allocations: 24.97 kB / 415.5 MB, free: 10.95 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001471/0.3533, allocations: 82.83 kB / 415.6 MB, free: 10.88 MB / 334.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3533, allocations: 5.344 kB / 415.6 MB, free: 10.88 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04316/0.3965, allocations: 5.86 MB / 421.5 MB, free: 7.941 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.46/13.86, allocations: 0 / 421.5 MB, free: 7.941 MB / 334.1 MB " [Timeout remaining time 646] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --stepSize=0.00025 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.592662737937644]