Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001708/0.001708, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001921/0.001921, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.449/1.449, allocations: 227.4 MB / 247 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001795/0.001795, allocations: 63.89 kB / 358.3 MB, free: 13.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2706/0.2724, allocations: 50.56 MB / 408.8 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004012/0.2764, allocations: 2.885 MB / 411.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001372/0.2778, allocations: 0.7555 MB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000122/0.278, allocations: 12 kB / 412.5 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001596/0.2781, allocations: 47.5 kB / 412.5 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000197/0.2784, allocations: 83.19 kB / 412.6 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000326/0.2787, allocations: 115.7 kB / 412.7 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003965/0.2791, allocations: 366.5 kB / 413.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000246/0.2794, allocations: 131.2 kB / 413.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001703/0.2795, allocations: 135.6 kB / 413.4 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002224/0.2798, allocations: 151.3 kB / 413.5 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.115e-05/0.2798, allocations: 28 kB / 413.5 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.471e-05/0.2799, allocations: 32 kB / 413.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.67e-05/0.28, allocations: 75.69 kB / 413.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001833/0.2802, allocations: 167.2 kB / 413.8 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004162/0.2806, allocations: 365.5 kB / 414.2 MB, free: 12.11 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.2806, allocations: 0 / 414.2 MB, free: 12.11 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2806, allocations: 0 / 414.2 MB, free: 12.11 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.635e-06/0.2806, allocations: 4 kB / 414.2 MB, free: 12.1 MB / 334.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.001157/0.2818, allocations: 0.6131 MB / 414.8 MB, free: 11.44 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.893e-05/0.2818, allocations: 8.031 kB / 414.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.195e-05/0.2819, allocations: 70.67 kB / 414.8 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.177e-05/0.282, allocations: 40.7 kB / 414.9 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004641/0.2825, allocations: 268.5 kB / 415.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.454e-05/0.2826, allocations: 76.62 kB / 415.2 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.871e-05/0.2827, allocations: 28.38 kB / 415.3 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005216/0.2832, allocations: 305.7 kB / 415.6 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.2832, allocations: 0 / 415.6 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.455e-05/0.2833, allocations: 12 kB / 415.6 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.2833, allocations: 7.938 kB / 415.6 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003646/0.2836, allocations: 186.2 kB / 415.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001964/0.2856, allocations: 1.131 MB / 416.9 MB, free: 9.172 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003315/0.286, allocations: 158.6 kB / 417 MB, free: 9.008 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001394/0.2861, allocations: 76.83 kB / 417.1 MB, free: 8.93 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3e-05/0.2862, allocations: 7.984 kB / 417.1 MB, free: 8.922 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000319/0.2865, allocations: 161.3 kB / 417.3 MB, free: 8.746 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.483e-06/0.2865, allocations: 0 / 417.3 MB, free: 8.746 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.00118/0.2877, allocations: 383.6 kB / 417.7 MB, free: 8.344 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.242e-05/0.2878, allocations: 110.8 kB / 417.8 MB, free: 8.211 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002549/0.288, allocations: 221 kB / 418 MB, free: 7.984 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.373e-05/0.2881, allocations: 37.69 kB / 418 MB, free: 7.941 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001467/0.2882, allocations: 184.4 kB / 418.2 MB, free: 7.758 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001168/0.2884, allocations: 67.48 kB / 418.3 MB, free: 7.691 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001061/0.2885, allocations: 65.58 kB / 418.3 MB, free: 7.621 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000188/0.2887, allocations: 330.8 kB / 418.6 MB, free: 7.289 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001361/0.2888, allocations: 67.97 kB / 418.7 MB, free: 7.223 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001925/0.289, allocations: 149.5 kB / 418.9 MB, free: 7.043 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002942/0.2893, allocations: 188.2 kB / 419 MB, free: 6.836 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.2893, allocations: 0 / 419 MB, free: 6.836 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005853/0.2899, allocations: 272.8 kB / 419.3 MB, free: 6.562 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.29, allocations: 19.06 kB / 419.3 MB, free: 6.547 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.29, allocations: 0 / 419.3 MB, free: 6.547 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002824/0.2903, allocations: 52.81 kB / 419.4 MB, free: 6.492 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002122/0.2905, allocations: 51.92 kB / 419.4 MB, free: 6.441 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001597/0.2921, allocations: 1.569 MB / 421 MB, free: 4.734 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002425/0.2923, allocations: 43.8 kB / 421 MB, free: 4.691 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.163e-05/0.2924, allocations: 8 kB / 421.1 MB, free: 4.684 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.0001902/0.2926, allocations: 157.6 kB / 421.2 MB, free: 4.52 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.173e-05/0.2926, allocations: 23.86 kB / 421.2 MB, free: 4.496 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.743e-05/0.2927, allocations: 26.25 kB / 421.3 MB, free: 4.469 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.2927, allocations: 4 kB / 421.3 MB, free: 4.465 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.2927, allocations: 0 / 421.3 MB, free: 4.465 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.705e-06/0.2927, allocations: 7.922 kB / 421.3 MB, free: 4.457 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004134/0.2932, allocations: 329.3 kB / 421.6 MB, free: 4.086 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.2932, allocations: 3.938 kB / 421.6 MB, free: 4.082 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001831/0.2934, allocations: 31.98 kB / 421.6 MB, free: 4.051 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000193/0.2936, allocations: 56.75 kB / 421.7 MB, free: 3.992 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.03e-05/0.2936, allocations: 8 kB / 421.7 MB, free: 3.984 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00128/0.2949, allocations: 1.414 MB / 423.1 MB, free: 2.43 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.2949, allocations: 0 / 423.1 MB, free: 2.43 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006588/0.2956, allocations: 326.9 kB / 423.4 MB, free: 2.09 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001196/0.2957, allocations: 120.8 kB / 423.5 MB, free: 1.953 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.763e-05/0.2957, allocations: 8 kB / 423.5 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001603/0.2959, allocations: 11.98 kB / 423.6 MB, free: 1.934 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.34e-05/0.296, allocations: 31.95 kB / 423.6 MB, free: 1.902 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.42e-05/0.296, allocations: 4 kB / 423.6 MB, free: 1.898 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001646/0.2962, allocations: 164.5 kB / 423.8 MB, free: 1.742 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2962, allocations: 4 kB / 423.8 MB, free: 1.738 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003799/0.2966, allocations: 83.84 kB / 423.8 MB, free: 1.656 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.001036/0.2976, allocations: 0.8655 MB / 424.7 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005796/0.2982, allocations: 290.4 kB / 425 MB, free: 480 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2982, allocations: 0 / 425 MB, free: 480 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002878/0.2985, allocations: 194.6 kB / 425.2 MB, free: 272 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002935/0.2988, allocations: 32.92 kB / 425.2 MB, free: 240 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004026/0.3029, allocations: 2.602 MB / 427.8 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004386/0.3033, allocations: 0.7597 MB / 428.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000122/0.3035, allocations: 26.23 kB / 428.6 MB, free: 12.69 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001437/0.3036, allocations: 83.41 kB / 428.7 MB, free: 12.61 MB / 350.1 MB Notification: Performance of SimCode: time 4.95e-06/0.3036, allocations: 0 / 428.7 MB, free: 12.61 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03329/0.3369, allocations: 5.637 MB / 434.3 MB, free: 7.125 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/11.79, allocations: 11.73 kB / 434.3 MB, free: 7.113 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches