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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001452/0.001452, allocations: 116 kB / 18.45 MB, free: 4.625 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.001379/0.001379, allocations: 194.9 kB / 21.4 MB, free: 1.688 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.421/1.421, allocations: 207.6 MB / 231.8 MB, free: 4.094 MB / 174.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.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: "" <> 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.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.001649/0.001649, allocations: 56.39 kB / 342.3 MB, free: 10.02 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08909/0.09074, allocations: 49.12 MB / 391.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004124/0.09487, allocations: 2.835 MB / 394.2 MB, free: 5.883 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001279/0.09615, allocations: 0.7834 MB / 395 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001315/0.09628, allocations: 11.94 kB / 395 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001702/0.09645, allocations: 47.5 kB / 395.1 MB, free: 5.031 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001784/0.09663, allocations: 91.19 kB / 395.1 MB, free: 4.941 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003334/0.09696, allocations: 103.7 kB / 395.2 MB, free: 4.84 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004115/0.09737, allocations: 370.3 kB / 395.6 MB, free: 4.477 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001934/0.09756, allocations: 95.2 kB / 395.7 MB, free: 4.379 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001608/0.09772, allocations: 139.6 kB / 395.8 MB, free: 4.242 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002035/0.09793, allocations: 155.3 kB / 396 MB, free: 4.09 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.504e-05/0.09798, allocations: 28 kB / 396 MB, free: 4.062 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.937e-05/0.09803, allocations: 32 kB / 396 MB, free: 4.031 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.026e-05/0.0981, allocations: 71.75 kB / 396.1 MB, free: 3.961 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001612/0.09826, allocations: 163.2 kB / 396.3 MB, free: 3.801 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003922/0.09866, allocations: 362.5 kB / 396.6 MB, free: 3.445 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.09866, allocations: 0 / 396.6 MB, free: 3.445 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.09866, allocations: 0 / 396.6 MB, free: 3.445 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.09867, allocations: 0 / 396.6 MB, free: 3.445 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.001039/0.09971, allocations: 0.6131 MB / 397.2 MB, free: 2.785 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.09975, allocations: 8.031 kB / 397.3 MB, free: 2.777 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.21e-05/0.09982, allocations: 70.66 kB / 397.3 MB, free: 2.699 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.297e-05/0.09989, allocations: 36.75 kB / 397.4 MB, free: 2.664 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003851/0.1003, allocations: 272.5 kB / 397.6 MB, free: 2.359 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.785e-05/0.1004, allocations: 76.62 kB / 397.7 MB, free: 2.273 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.422e-05/0.1004, allocations: 24.38 kB / 397.7 MB, free: 2.25 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000459/0.1009, allocations: 309.6 kB / 398 MB, free: 1.93 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.1009, allocations: 0 / 398 MB, free: 1.93 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.669e-05/0.1009, allocations: 8 kB / 398 MB, free: 1.922 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.367e-06/0.1009, allocations: 8 kB / 398 MB, free: 1.914 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003341/0.1012, allocations: 194.1 kB / 398.2 MB, free: 1.723 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001665/0.1029, allocations: 1.131 MB / 399.4 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000299/0.1032, allocations: 150.5 kB / 399.5 MB, free: 364 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001278/0.1033, allocations: 76.83 kB / 399.6 MB, free: 284 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.692e-05/0.1033, allocations: 0 / 399.6 MB, free: 284 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002637/0.1036, allocations: 157.8 kB / 399.7 MB, free: 104 kB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.092e-06/0.1036, allocations: 0 / 399.7 MB, free: 104 kB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001013/0.1046, allocations: 383.7 kB / 400.1 MB, free: 15.7 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.013e-05/0.1047, allocations: 110.8 kB / 400.2 MB, free: 15.56 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002249/0.1049, allocations: 225 kB / 400.4 MB, free: 15.33 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.5e-05/0.105, allocations: 29.7 kB / 400.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001279/0.1051, allocations: 180.5 kB / 400.6 MB, free: 15.11 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.823e-05/0.1052, allocations: 75.33 kB / 400.7 MB, free: 15.04 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.576e-05/0.1052, allocations: 65.52 kB / 400.8 MB, free: 14.97 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.1054, allocations: 338.8 kB / 401.1 MB, free: 14.63 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000133/0.1055, allocations: 71.91 kB / 401.2 MB, free: 14.56 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001839/0.1057, allocations: 148.6 kB / 401.3 MB, free: 14.39 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002632/0.106, allocations: 189.2 kB / 401.5 MB, free: 14.18 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.411e-06/0.106, allocations: 4 kB / 401.5 MB, free: 14.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000415/0.1064, allocations: 267.8 kB / 401.8 MB, free: 13.91 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.1064, allocations: 4 kB / 401.8 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.1064, allocations: 4 kB / 401.8 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002483/0.1067, allocations: 57.03 kB / 401.8 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002083/0.1069, allocations: 51.91 kB / 401.9 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001399/0.1083, allocations: 1.564 MB / 403.5 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002165/0.1085, allocations: 39.86 kB / 403.5 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.371e-05/0.1085, allocations: 20 kB / 403.5 MB, free: 12.02 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.0001455/0.1087, allocations: 141.7 kB / 403.7 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.755e-05/0.1087, allocations: 23.86 kB / 403.7 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.86e-05/0.1087, allocations: 30.17 kB / 403.7 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.1088, allocations: 7.984 kB / 403.7 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.1088, allocations: 0 / 403.7 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.814e-06/0.1088, allocations: 7.922 kB / 403.7 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000332/0.1091, allocations: 317.4 kB / 404 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.1091, allocations: 7.938 kB / 404 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001595/0.1093, allocations: 31.98 kB / 404.1 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001854/0.1094, allocations: 52.81 kB / 404.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.36e-05/0.1095, allocations: 0 / 404.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001213/0.1107, allocations: 1.426 MB / 405.6 MB, free: 9.789 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.1107, allocations: 0 / 405.6 MB, free: 9.789 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006126/0.1113, allocations: 334.2 kB / 405.9 MB, free: 9.441 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001135/0.1114, allocations: 120.8 kB / 406 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.256e-05/0.1114, allocations: 4 kB / 406 MB, free: 9.301 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001608/0.1116, allocations: 20.11 kB / 406 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.69e-05/0.1117, allocations: 31.95 kB / 406 MB, free: 9.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.345e-05/0.1117, allocations: 8 kB / 406.1 MB, free: 9.242 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001449/0.1118, allocations: 160.5 kB / 406.2 MB, free: 9.086 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1118, allocations: 0 / 406.2 MB, free: 9.086 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003358/0.1122, allocations: 79.84 kB / 406.3 MB, free: 9.008 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.0009575/0.1131, allocations: 0.8708 MB / 407.2 MB, free: 8.105 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005334/0.1136, allocations: 278.9 kB / 407.4 MB, free: 7.82 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1137, allocations: 64 / 407.4 MB, free: 7.82 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002764/0.1139, allocations: 194.6 kB / 407.6 MB, free: 7.617 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002697/0.1142, allocations: 40.27 kB / 407.7 MB, free: 7.578 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003567/0.1178, allocations: 2.598 MB / 410.3 MB, free: 4.848 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003737/0.1181, allocations: 0.7635 MB / 411 MB, free: 4.059 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.96e-05/0.1182, allocations: 22.3 kB / 411 MB, free: 4.035 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001129/0.1183, allocations: 83.41 kB / 411.1 MB, free: 3.953 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1183, allocations: 0 / 411.1 MB, free: 3.953 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03268/0.151, allocations: 5.672 MB / 416.8 MB, free: 14.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.33, allocations: 3.984 kB / 416.8 MB, free: 14.22 MB / 350.1 MB " [Timeout remaining time 649] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 13.827259542886168]