Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.ControlledSwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001243/0.001243, allocations: 118.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.001343/0.001343, allocations: 205.2 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.431/1.431, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 63.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2755/0.2768, allocations: 50.55 MB / 408.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.00433/0.2812, allocations: 3.15 MB / 411.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00156/0.2828, allocations: 0.8178 MB / 412.7 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000254/0.2831, allocations: 7.938 kB / 412.8 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002851/0.2834, allocations: 59.42 kB / 412.8 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002615/0.2837, allocations: 95.06 kB / 412.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004995/0.2842, allocations: 131.7 kB / 413 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005452/0.2847, allocations: 414.2 kB / 413.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002538/0.285, allocations: 143.7 kB / 413.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003088/0.2853, allocations: 167.4 kB / 413.7 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002668/0.2856, allocations: 171.2 kB / 413.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.853e-05/0.2857, allocations: 36 kB / 413.9 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.773e-05/0.2858, allocations: 40 kB / 414 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.766e-05/0.2859, allocations: 83.69 kB / 414.1 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001759/0.286, allocations: 183.1 kB / 414.2 MB, free: 12.03 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004518/0.2865, allocations: 432.2 kB / 414.7 MB, free: 11.61 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.2865, allocations: 0 / 414.7 MB, free: 11.61 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.2865, allocations: 3.938 kB / 414.7 MB, free: 11.6 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.563e-05/0.2865, allocations: 0 / 414.7 MB, free: 11.6 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001115/0.2877, allocations: 0.6509 MB / 415.3 MB, free: 10.9 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.2877, allocations: 15.97 kB / 415.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.734e-05/0.2878, allocations: 74.66 kB / 415.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002145/0.288, allocations: 44.55 kB / 415.5 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004214/0.2885, allocations: 289.1 kB / 415.7 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.933e-05/0.2886, allocations: 84.61 kB / 415.8 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.657e-05/0.2886, allocations: 28.38 kB / 415.8 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005458/0.2892, allocations: 334.7 kB / 416.2 MB, free: 9.973 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.526e-05/0.2892, allocations: 4 kB / 416.2 MB, free: 9.969 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.74e-05/0.2892, allocations: 19.98 kB / 416.2 MB, free: 9.949 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.052e-05/0.2892, allocations: 8 kB / 416.2 MB, free: 9.941 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004167/0.2897, allocations: 218.5 kB / 416.4 MB, free: 9.73 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001944/0.2916, allocations: 1.36 MB / 417.8 MB, free: 8.27 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003696/0.292, allocations: 173.2 kB / 417.9 MB, free: 8.094 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001711/0.2922, allocations: 88.83 kB / 418 MB, free: 8.004 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.155e-05/0.2922, allocations: 0 / 418 MB, free: 8.004 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000327/0.2926, allocations: 165.5 kB / 418.2 MB, free: 7.824 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.864e-06/0.2926, allocations: 0 / 418.2 MB, free: 7.824 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001212/0.2938, allocations: 410.9 kB / 418.6 MB, free: 7.395 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.12e-05/0.2939, allocations: 102.8 kB / 418.7 MB, free: 7.27 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002934/0.2942, allocations: 262.7 kB / 419 MB, free: 7.004 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.876e-05/0.2942, allocations: 29.7 kB / 419 MB, free: 6.969 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001728/0.2944, allocations: 211.8 kB / 419.2 MB, free: 6.758 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.454e-05/0.2945, allocations: 67.08 kB / 419.3 MB, free: 6.691 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001113/0.2946, allocations: 65.94 kB / 419.3 MB, free: 6.621 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002616/0.2949, allocations: 338.8 kB / 419.6 MB, free: 6.281 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001746/0.2951, allocations: 76.61 kB / 419.7 MB, free: 6.207 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002649/0.2953, allocations: 181.4 kB / 419.9 MB, free: 5.984 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003782/0.2957, allocations: 231.6 kB / 420.1 MB, free: 5.723 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-06/0.2957, allocations: 4 kB / 420.1 MB, free: 5.719 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008563/0.2966, allocations: 344.2 kB / 420.5 MB, free: 5.375 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.814e-05/0.2966, allocations: 8 kB / 420.5 MB, free: 5.367 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.869e-06/0.2967, allocations: 3.984 kB / 420.5 MB, free: 5.363 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003015/0.297, allocations: 65 kB / 420.5 MB, free: 5.297 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002536/0.2972, allocations: 59.91 kB / 420.6 MB, free: 5.238 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001554/0.2988, allocations: 1.572 MB / 422.2 MB, free: 3.531 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002861/0.2991, allocations: 39.67 kB / 422.2 MB, free: 3.492 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.697e-05/0.2991, allocations: 20.09 kB / 422.2 MB, free: 3.473 MB / 334.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.0001831/0.2993, allocations: 149.7 kB / 422.4 MB, free: 3.316 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.367e-05/0.2994, allocations: 35.56 kB / 422.4 MB, free: 3.281 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.28e-05/0.2994, allocations: 34.11 kB / 422.4 MB, free: 3.242 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.2995, allocations: 4 kB / 422.4 MB, free: 3.238 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.2995, allocations: 0 / 422.4 MB, free: 3.238 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.2995, allocations: 3.984 kB / 422.5 MB, free: 3.234 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004026/0.2999, allocations: 329.5 kB / 422.8 MB, free: 2.863 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.2999, allocations: 4 kB / 422.8 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002059/0.3001, allocations: 39.91 kB / 422.8 MB, free: 2.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002119/0.3003, allocations: 56.75 kB / 422.9 MB, free: 2.762 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.113e-05/0.3004, allocations: 0 / 422.9 MB, free: 2.762 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001424/0.3018, allocations: 1.418 MB / 424.3 MB, free: 1.203 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.384e-06/0.3018, allocations: 4.031 kB / 424.3 MB, free: 1.199 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007461/0.3026, allocations: 348.5 kB / 424.6 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001403/0.3027, allocations: 112.8 kB / 424.7 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.832e-05/0.3028, allocations: 11.98 kB / 424.8 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001798/0.303, allocations: 24.09 kB / 424.8 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.058e-05/0.3031, allocations: 39.83 kB / 424.8 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.381e-05/0.3031, allocations: 4 kB / 424.8 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001696/0.3033, allocations: 182 kB / 425 MB, free: 464 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3033, allocations: 0 / 425 MB, free: 464 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003961/0.3037, allocations: 95.73 kB / 425.1 MB, free: 368 kB / 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: 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.00107/0.3047, allocations: 0.8823 MB / 426 MB, free: 15.44 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006628/0.3054, allocations: 314.8 kB / 426.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.608e-06/0.3054, allocations: 4 kB / 426.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003243/0.3058, allocations: 203.6 kB / 426.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002966/0.3061, allocations: 37.11 kB / 426.5 MB, free: 14.87 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004466/0.3105, allocations: 2.897 MB / 429.4 MB, free: 11.83 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003632/0.3109, allocations: 0.7791 MB / 430.2 MB, free: 11.02 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001285/0.3111, allocations: 26.27 kB / 430.2 MB, free: 11 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001389/0.3112, allocations: 99.41 kB / 430.3 MB, free: 10.9 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3112, allocations: 0 / 430.3 MB, free: 10.9 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03239/0.3436, allocations: 6.15 MB / 436.5 MB, free: 4.926 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.54, allocations: 7.219 kB / 436.5 MB, free: 4.926 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches