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: translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001076/0.001076, allocations: 113.1 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001139/0.001139, allocations: 208.9 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.354/1.354, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001735/0.001735, allocations: 55.91 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2982/0.3, allocations: 50.54 MB / 409.9 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004038/0.3041, allocations: 3.151 MB / 413.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001313/0.3054, allocations: 0.8217 MB / 413.9 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001414/0.3056, allocations: 8 kB / 413.9 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001716/0.3057, allocations: 51.44 kB / 414 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001724/0.3059, allocations: 99.05 kB / 414.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003899/0.3063, allocations: 131.7 kB / 414.2 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003687/0.3067, allocations: 418.2 kB / 414.6 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002413/0.307, allocations: 143.7 kB / 414.8 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002209/0.3072, allocations: 163.4 kB / 414.9 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002033/0.3074, allocations: 175.2 kB / 415.1 MB, free: 12.44 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.322e-05/0.3075, allocations: 36 kB / 415.1 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.564e-05/0.3076, allocations: 36 kB / 415.2 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.748e-05/0.3076, allocations: 83.69 kB / 415.2 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000159/0.3078, allocations: 183.1 kB / 415.4 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003973/0.3082, allocations: 439.5 kB / 415.8 MB, free: 11.68 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.3082, allocations: 0 / 415.8 MB, free: 11.68 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3082, allocations: 0 / 415.8 MB, free: 11.68 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.693e-06/0.3082, allocations: 4 kB / 415.8 MB, free: 11.68 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.001013/0.3093, allocations: 0.647 MB / 416.5 MB, free: 10.98 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.3093, allocations: 12.03 kB / 416.5 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001874/0.3095, allocations: 44.56 kB / 416.5 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003963/0.3099, allocations: 301 kB / 416.8 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.789e-05/0.31, allocations: 76.62 kB / 416.9 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.174e-05/0.31, allocations: 32.38 kB / 416.9 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005133/0.3106, allocations: 338.9 kB / 417.3 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.411e-05/0.3106, allocations: 7.938 kB / 417.3 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.123e-05/0.3106, allocations: 12 kB / 417.3 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.3106, allocations: 8 kB / 417.3 MB, free: 10.1 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003923/0.311, allocations: 218.5 kB / 417.5 MB, free: 9.887 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001705/0.3127, allocations: 1.356 MB / 418.9 MB, free: 8.43 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000308/0.3131, allocations: 170.5 kB / 419 MB, free: 8.254 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001529/0.3132, allocations: 92.75 kB / 419.1 MB, free: 8.16 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.356e-05/0.3133, allocations: 4 kB / 419.1 MB, free: 8.156 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002514/0.3135, allocations: 155 kB / 419.3 MB, free: 7.984 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.423e-06/0.3135, allocations: 0 / 419.3 MB, free: 7.984 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001045/0.3146, allocations: 410.4 kB / 419.7 MB, free: 7.559 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.433e-05/0.3147, allocations: 114.7 kB / 419.8 MB, free: 7.422 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002483/0.3149, allocations: 262.7 kB / 420.1 MB, free: 7.156 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.995e-05/0.3149, allocations: 29.7 kB / 420.1 MB, free: 7.121 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001189/0.3151, allocations: 203.9 kB / 420.3 MB, free: 6.918 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.669e-05/0.3151, allocations: 71 kB / 420.4 MB, free: 6.848 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.987e-05/0.3152, allocations: 65.92 kB / 420.4 MB, free: 6.777 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.3154, allocations: 338.8 kB / 420.8 MB, free: 6.438 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001619/0.3155, allocations: 80.62 kB / 420.8 MB, free: 6.359 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002124/0.3157, allocations: 177.5 kB / 421 MB, free: 6.141 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003284/0.3161, allocations: 235.6 kB / 421.2 MB, free: 5.875 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.62e-06/0.3161, allocations: 4 kB / 421.2 MB, free: 5.871 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006367/0.3167, allocations: 340.3 kB / 421.6 MB, free: 5.531 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.391e-05/0.3168, allocations: 14.59 kB / 421.6 MB, free: 5.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.3168, allocations: 0 / 421.6 MB, free: 5.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002617/0.317, allocations: 57.06 kB / 421.6 MB, free: 5.461 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002414/0.3173, allocations: 67.84 kB / 421.7 MB, free: 5.395 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001323/0.3186, allocations: 1.568 MB / 423.3 MB, free: 3.691 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002475/0.3189, allocations: 47.61 kB / 423.3 MB, free: 3.645 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.236e-05/0.3189, allocations: 16.08 kB / 423.3 MB, free: 3.629 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.0001721/0.3191, allocations: 153.7 kB / 423.5 MB, free: 3.469 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.107e-05/0.3192, allocations: 31.62 kB / 423.5 MB, free: 3.438 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.234e-05/0.3192, allocations: 30.11 kB / 423.5 MB, free: 3.402 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.3192, allocations: 4 kB / 423.6 MB, free: 3.398 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.3192, allocations: 0 / 423.6 MB, free: 3.398 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.3192, allocations: 0 / 423.6 MB, free: 3.398 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003269/0.3196, allocations: 333.5 kB / 423.9 MB, free: 3.023 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.3196, allocations: 4 kB / 423.9 MB, free: 3.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001846/0.3198, allocations: 39.92 kB / 423.9 MB, free: 2.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001821/0.32, allocations: 52.75 kB / 424 MB, free: 2.926 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.996e-05/0.32, allocations: 4 kB / 424 MB, free: 2.922 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001121/0.3211, allocations: 1.426 MB / 425.4 MB, free: 1.355 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3211, allocations: 0 / 425.4 MB, free: 1.355 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006655/0.3218, allocations: 345.3 kB / 425.7 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001057/0.3219, allocations: 120.8 kB / 425.9 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.455e-05/0.322, allocations: 4 kB / 425.9 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001679/0.3221, allocations: 24.11 kB / 425.9 MB, free: 0.832 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.565e-05/0.3222, allocations: 31.89 kB / 425.9 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.358e-05/0.3223, allocations: 4 kB / 425.9 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000153/0.3224, allocations: 186 kB / 426.1 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3224, allocations: 4 kB / 426.1 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003788/0.3228, allocations: 87.75 kB / 426.2 MB, free: 0.5234 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: 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.0001362/0.323, allocations: 107.2 kB / 426.3 MB, free: 416 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005895/0.3236, allocations: 314 kB / 426.6 MB, free: 92 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3236, allocations: 0 / 426.6 MB, free: 92 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003202/0.3239, allocations: 207.2 kB / 426.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002653/0.3242, allocations: 36.5 kB / 426.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001411/0.3256, allocations: 0.7051 MB / 427.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003108/0.3259, allocations: 0.7753 MB / 428.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.379e-05/0.326, allocations: 27.44 kB / 428.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.326, allocations: 0 / 428.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of Templates: time 0.006168/0.3322, allocations: 4.671 MB / 433 MB, free: 9.609 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (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 & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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