Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001035/0.001035, allocations: 187 kB / 17.92 MB, free: 3.852 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.24/1.24, allocations: 205.1 MB / 223.7 MB, free: 8.48 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009102/0.00091, allocations: 102.1 kB / 271.2 MB, free: 8.438 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008757/0.0008758, allocations: 35.95 kB / 327.2 MB, free: 332 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.208/0.2089, allocations: 46.62 MB / 373.8 MB, free: 45.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003422/0.2124, allocations: 3.136 MB / 377 MB, free: 43.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008812/0.2133, allocations: 0.7831 MB / 377.7 MB, free: 42.69 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001288/0.2134, allocations: 5.688 kB / 377.7 MB, free: 42.69 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001445/0.2136, allocations: 37.22 kB / 377.8 MB, free: 42.66 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001426/0.2137, allocations: 91.11 kB / 377.9 MB, free: 42.58 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002603/0.214, allocations: 89.73 kB / 378 MB, free: 42.51 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003095/0.2143, allocations: 412.2 kB / 378.4 MB, free: 42.27 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002034/0.2145, allocations: 120.2 kB / 378.5 MB, free: 42.2 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001508/0.2147, allocations: 150.7 kB / 378.6 MB, free: 42.11 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001593/0.2148, allocations: 161 kB / 378.8 MB, free: 42 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.538e-05/0.2149, allocations: 23.41 kB / 378.8 MB, free: 42 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.644e-05/0.215, allocations: 28.28 kB / 378.8 MB, free: 42 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.125e-05/0.215, allocations: 65.47 kB / 378.9 MB, free: 41.95 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001381/0.2152, allocations: 184.8 kB / 379.1 MB, free: 41.82 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002685/0.2154, allocations: 402.4 kB / 379.5 MB, free: 41.53 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.2155, allocations: 1.125 kB / 379.5 MB, free: 41.53 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2155, allocations: 0 / 379.5 MB, free: 41.53 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.2155, allocations: 0 / 379.5 MB, free: 41.53 MB / 298.7 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.0008717/0.2163, allocations: 0.6508 MB / 380.1 MB, free: 40.96 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.381e-05/0.2164, allocations: 10.31 kB / 380.1 MB, free: 40.96 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.173e-05/0.2165, allocations: 40.19 kB / 380.2 MB, free: 40.94 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002679/0.2167, allocations: 277.8 kB / 380.4 MB, free: 40.66 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.59e-05/0.2168, allocations: 83.02 kB / 380.5 MB, free: 40.59 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.301e-05/0.2169, allocations: 33.31 kB / 380.6 MB, free: 40.57 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000466/0.2173, allocations: 335.8 kB / 380.9 MB, free: 40.36 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.2174, allocations: 3.938 kB / 380.9 MB, free: 40.35 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.717e-05/0.2174, allocations: 11.94 kB / 380.9 MB, free: 40.34 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.2174, allocations: 7.219 kB / 380.9 MB, free: 40.34 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003745/0.2178, allocations: 222.6 kB / 381.1 MB, free: 40.24 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001451/0.2193, allocations: 1.371 MB / 382.5 MB, free: 39.03 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002787/0.2195, allocations: 171 kB / 382.7 MB, free: 38.93 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001501/0.2197, allocations: 91.97 kB / 382.8 MB, free: 38.88 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.278e-05/0.2197, allocations: 2.719 kB / 382.8 MB, free: 38.88 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002336/0.22, allocations: 152.4 kB / 382.9 MB, free: 38.76 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.342e-06/0.22, allocations: 4 kB / 382.9 MB, free: 38.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009442/0.2209, allocations: 401.2 kB / 383.3 MB, free: 38.49 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.004e-05/0.221, allocations: 110.3 kB / 383.4 MB, free: 38.36 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001973/0.2212, allocations: 270 kB / 383.7 MB, free: 38.17 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.642e-05/0.2212, allocations: 32.2 kB / 383.7 MB, free: 38.14 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.018e-05/0.2213, allocations: 202.1 kB / 383.9 MB, free: 37.95 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.156e-05/0.2213, allocations: 75.7 kB / 384 MB, free: 37.89 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.087e-05/0.2214, allocations: 57.25 kB / 384 MB, free: 37.85 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.265e-05/0.2215, allocations: 336.2 kB / 384.4 MB, free: 37.52 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001407/0.2216, allocations: 77.42 kB / 384.4 MB, free: 37.48 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001699/0.2218, allocations: 186.7 kB / 384.6 MB, free: 37.31 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002776/0.2221, allocations: 237.8 kB / 384.9 MB, free: 37.12 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.2221, allocations: 1.281 kB / 384.9 MB, free: 37.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000583/0.2227, allocations: 345 kB / 385.2 MB, free: 36.94 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.2227, allocations: 6.344 kB / 385.2 MB, free: 36.94 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.2227, allocations: 3.125 kB / 385.2 MB, free: 36.94 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002461/0.223, allocations: 55.22 kB / 385.3 MB, free: 36.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002357/0.2232, allocations: 68.56 kB / 385.3 MB, free: 36.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000921/0.2242, allocations: 1.403 MB / 386.7 MB, free: 35.44 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002244/0.2244, allocations: 42.14 kB / 386.8 MB, free: 35.42 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.591e-05/0.2244, allocations: 19.02 kB / 386.8 MB, free: 35.41 MB / 298.7 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.0001083/0.2246, allocations: 148 kB / 386.9 MB, free: 35.27 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.351e-05/0.2246, allocations: 25.09 kB / 387 MB, free: 35.26 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.407e-05/0.2246, allocations: 39.95 kB / 387 MB, free: 35.23 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/0.2247, allocations: 2.656 kB / 387 MB, free: 35.23 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.2247, allocations: 3.938 kB / 387 MB, free: 35.23 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.2247, allocations: 0 / 387 MB, free: 35.23 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00024/0.2249, allocations: 344.9 kB / 387.3 MB, free: 34.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.2249, allocations: 0 / 387.3 MB, free: 34.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001739/0.2251, allocations: 36.67 kB / 387.4 MB, free: 34.9 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001613/0.2253, allocations: 55.75 kB / 387.4 MB, free: 34.87 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.699e-05/0.2253, allocations: 2.656 kB / 387.4 MB, free: 34.87 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000746/0.2261, allocations: 1.326 MB / 388.8 MB, free: 33.5 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.2261, allocations: 0 / 388.8 MB, free: 33.5 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004958/0.231, allocations: 2.472 MB / 391.2 MB, free: 31.21 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.106e-05/0.2311, allocations: 116.8 kB / 391.3 MB, free: 31.07 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.278e-05/0.2312, allocations: 7.938 kB / 391.3 MB, free: 31.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001546/0.2313, allocations: 24.05 kB / 391.4 MB, free: 31.04 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.488e-05/0.2314, allocations: 35.88 kB / 391.4 MB, free: 31.01 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.312e-05/0.2314, allocations: 4 kB / 391.4 MB, free: 31 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001235/0.2316, allocations: 186 kB / 391.6 MB, free: 30.82 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2316, allocations: 3.938 kB / 391.6 MB, free: 30.82 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004621/0.232, allocations: 119.7 kB / 391.7 MB, free: 30.7 MB / 298.7 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 9.472e-05/0.2321, allocations: 111.2 kB / 391.8 MB, free: 30.58 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004717/0.2326, allocations: 310.4 kB / 392.1 MB, free: 30.27 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.2326, allocations: 0 / 392.1 MB, free: 30.27 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000225/0.2329, allocations: 198.6 kB / 392.3 MB, free: 30.06 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002471/0.2331, allocations: 41.27 kB / 392.4 MB, free: 30.02 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001387/0.2345, allocations: 0.971 MB / 393.3 MB, free: 29.01 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000161/0.2347, allocations: 0.7755 MB / 394.1 MB, free: 28.21 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001173/0.2348, allocations: 26.28 kB / 394.1 MB, free: 28.19 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.401e-05/0.2349, allocations: 27.42 kB / 394.2 MB, free: 28.16 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2349, allocations: 0 / 394.2 MB, free: 28.16 MB / 298.7 MB Notification: Performance of Templates: time 0.005187/0.2401, allocations: 3.333 MB / 397.5 MB, free: 24.85 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches