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.001129/0.001129, allocations: 121.7 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001233/0.001234, allocations: 199.8 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001119/0.001119, allocations: 59.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2571/0.2582, allocations: 50.54 MB / 408.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.00571/0.264, allocations: 2.893 MB / 411.7 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001524/0.2655, allocations: 0.7556 MB / 412.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003149/0.2659, allocations: 4 kB / 412.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002794/0.2662, allocations: 55.38 kB / 412.5 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000385/0.2666, allocations: 91.19 kB / 412.6 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005033/0.2671, allocations: 99.81 kB / 412.7 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005466/0.2677, allocations: 370.4 kB / 413 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002794/0.2679, allocations: 127.2 kB / 413.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000244/0.2682, allocations: 139.5 kB / 413.3 MB, free: 13 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002629/0.2685, allocations: 155.3 kB / 413.4 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.58e-05/0.2685, allocations: 28 kB / 413.5 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.957e-05/0.2686, allocations: 32 kB / 413.5 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.583e-05/0.2687, allocations: 75.73 kB / 413.6 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001866/0.2689, allocations: 159.3 kB / 413.7 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004306/0.2693, allocations: 360.4 kB / 414.1 MB, free: 12.21 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.2694, allocations: 7.984 kB / 414.1 MB, free: 12.2 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.2694, allocations: 0 / 414.1 MB, free: 12.2 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.676e-05/0.2694, allocations: 0 / 414.1 MB, free: 12.2 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.00118/0.2706, allocations: 0.6095 MB / 414.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.2706, allocations: 8.031 kB / 414.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.069e-05/0.2707, allocations: 66.72 kB / 414.8 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8e-05/0.2708, allocations: 32.56 kB / 414.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004019/0.2712, allocations: 268.4 kB / 415.1 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.221e-05/0.2713, allocations: 80.61 kB / 415.1 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.797e-05/0.2713, allocations: 28.38 kB / 415.2 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004648/0.2718, allocations: 297.6 kB / 415.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.2718, allocations: 0 / 415.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.47e-05/0.2719, allocations: 15.98 kB / 415.5 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.2719, allocations: 15.94 kB / 415.5 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003248/0.2722, allocations: 186.2 kB / 415.7 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001871/0.2741, allocations: 1.123 MB / 416.8 MB, free: 9.285 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000325/0.2744, allocations: 162.1 kB / 416.9 MB, free: 9.121 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000161/0.2746, allocations: 80.84 kB / 417 MB, free: 9.039 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.867e-05/0.2747, allocations: 0 / 417 MB, free: 9.039 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002846/0.2749, allocations: 161.2 kB / 417.2 MB, free: 8.863 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.382e-06/0.275, allocations: 0 / 417.2 MB, free: 8.863 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001041/0.276, allocations: 391.1 kB / 417.6 MB, free: 8.453 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.356e-05/0.2761, allocations: 106.8 kB / 417.7 MB, free: 8.324 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00023/0.2763, allocations: 225 kB / 417.9 MB, free: 8.094 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.81e-05/0.2764, allocations: 33.7 kB / 417.9 MB, free: 8.055 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000124/0.2765, allocations: 184.1 kB / 418.1 MB, free: 7.871 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.433e-05/0.2766, allocations: 63.11 kB / 418.2 MB, free: 7.809 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001003/0.2767, allocations: 61.59 kB / 418.2 MB, free: 7.742 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.2768, allocations: 342.8 kB / 418.6 MB, free: 7.398 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001212/0.2769, allocations: 63.97 kB / 418.6 MB, free: 7.336 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001693/0.2771, allocations: 141.5 kB / 418.8 MB, free: 7.164 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002499/0.2774, allocations: 188.2 kB / 418.9 MB, free: 6.957 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.2774, allocations: 0 / 418.9 MB, free: 6.957 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004497/0.2778, allocations: 284.3 kB / 419.2 MB, free: 6.672 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.2779, allocations: 4 kB / 419.2 MB, free: 6.668 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/0.2779, allocations: 3.984 kB / 419.2 MB, free: 6.664 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002604/0.2781, allocations: 61.03 kB / 419.3 MB, free: 6.602 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002117/0.2784, allocations: 47.92 kB / 419.3 MB, free: 6.555 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001388/0.2798, allocations: 1.568 MB / 420.9 MB, free: 4.848 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002696/0.28, allocations: 35.83 kB / 420.9 MB, free: 4.812 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.282e-05/0.2801, allocations: 15.98 kB / 421 MB, free: 4.797 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.0001626/0.2803, allocations: 153.6 kB / 421.1 MB, free: 4.637 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.875e-05/0.2803, allocations: 19.81 kB / 421.1 MB, free: 4.617 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.167e-05/0.2804, allocations: 30.17 kB / 421.2 MB, free: 4.586 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.309e-05/0.2804, allocations: 4 kB / 421.2 MB, free: 4.582 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.2804, allocations: 0 / 421.2 MB, free: 4.582 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.2804, allocations: 0 / 421.2 MB, free: 4.582 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003345/0.2807, allocations: 329.2 kB / 421.5 MB, free: 4.211 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.2807, allocations: 3.984 kB / 421.5 MB, free: 4.207 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001666/0.2809, allocations: 35.92 kB / 421.5 MB, free: 4.172 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001925/0.2811, allocations: 48.81 kB / 421.6 MB, free: 4.121 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.977e-05/0.2811, allocations: 7.984 kB / 421.6 MB, free: 4.113 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001095/0.2822, allocations: 1.426 MB / 423 MB, free: 2.547 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.2823, allocations: 0 / 423 MB, free: 2.547 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000633/0.2829, allocations: 322.6 kB / 423.3 MB, free: 2.211 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001029/0.283, allocations: 116.7 kB / 423.4 MB, free: 2.078 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.947e-05/0.2831, allocations: 8 kB / 423.4 MB, free: 2.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001658/0.2832, allocations: 20.11 kB / 423.5 MB, free: 2.051 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.986e-05/0.2833, allocations: 31.89 kB / 423.5 MB, free: 2.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.426e-05/0.2833, allocations: 11.98 kB / 423.5 MB, free: 2.008 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001399/0.2835, allocations: 160.5 kB / 423.7 MB, free: 1.855 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.2835, allocations: 0 / 423.7 MB, free: 1.855 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003927/0.2839, allocations: 75.84 kB / 423.7 MB, free: 1.781 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.0008881/0.2848, allocations: 0.8693 MB / 424.6 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005526/0.2854, allocations: 294.8 kB / 424.9 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2854, allocations: 4.125 kB / 424.9 MB, free: 0.582 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002655/0.2856, allocations: 190.6 kB / 425.1 MB, free: 392 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003084/0.286, allocations: 32.42 kB / 425.1 MB, free: 360 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003532/0.2895, allocations: 2.587 MB / 427.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002941/0.2898, allocations: 0.7597 MB / 428.5 MB, free: 12.85 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.812e-05/0.2899, allocations: 26.28 kB / 428.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001082/0.29, allocations: 83.36 kB / 428.6 MB, free: 12.74 MB / 350.1 MB Notification: Performance of SimCode: time 7.41e-07/0.29, allocations: 0 / 428.6 MB, free: 12.74 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02724/0.3173, allocations: 5.737 MB / 434.3 MB, free: 7.156 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.66, allocations: 11.67 kB / 434.3 MB, free: 7.148 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.0.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