Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001852/0.001852, allocations: 116.1 kB / 17.06 MB, free: 5.812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002076/0.002076, allocations: 196 kB / 18.01 MB, free: 4.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.466/1.466, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001521/0.001521, allocations: 47.92 kB / 350.8 MB, free: 3.781 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2289/0.2305, allocations: 49.44 MB / 400.3 MB, free: 8.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004461/0.235, allocations: 3.141 MB / 403.4 MB, free: 5.715 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001439/0.2364, allocations: 0.7439 MB / 404.1 MB, free: 4.965 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002244/0.2367, allocations: 15.88 kB / 404.2 MB, free: 4.949 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002287/0.237, allocations: 51.44 kB / 404.2 MB, free: 4.898 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002723/0.2373, allocations: 111 kB / 404.3 MB, free: 4.789 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004668/0.2377, allocations: 111.8 kB / 404.4 MB, free: 4.68 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005602/0.2383, allocations: 410.2 kB / 404.8 MB, free: 4.277 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002807/0.2386, allocations: 139.7 kB / 405 MB, free: 4.133 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002317/0.2388, allocations: 159.4 kB / 405.1 MB, free: 3.977 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002376/0.2391, allocations: 175.2 kB / 405.3 MB, free: 3.805 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.18e-05/0.2391, allocations: 36 kB / 405.3 MB, free: 3.77 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.741e-05/0.2392, allocations: 36 kB / 405.4 MB, free: 3.734 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.907e-05/0.2393, allocations: 75.75 kB / 405.4 MB, free: 3.66 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001945/0.2395, allocations: 199 kB / 405.6 MB, free: 3.465 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004818/0.24, allocations: 421.3 kB / 406 MB, free: 3.055 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.24, allocations: 0 / 406 MB, free: 3.055 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.24, allocations: 0 / 406 MB, free: 3.055 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.082e-05/0.24, allocations: 0 / 406 MB, free: 3.055 MB / 318.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.0011/0.2411, allocations: 0.6662 MB / 406.7 MB, free: 2.34 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.2412, allocations: 8.031 kB / 406.7 MB, free: 2.332 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.045e-05/0.2413, allocations: 70.72 kB / 406.8 MB, free: 2.254 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.233e-05/0.2414, allocations: 40.7 kB / 406.8 MB, free: 2.215 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000396/0.2418, allocations: 293.2 kB / 407.1 MB, free: 1.887 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.464e-05/0.2419, allocations: 72.62 kB / 407.2 MB, free: 1.805 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.28e-05/0.2419, allocations: 36.38 kB / 407.2 MB, free: 1.77 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005711/0.2425, allocations: 342.7 kB / 407.5 MB, free: 1.414 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.2425, allocations: 0 / 407.5 MB, free: 1.414 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.259e-05/0.2426, allocations: 16 kB / 407.6 MB, free: 1.398 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.181e-05/0.2426, allocations: 8 kB / 407.6 MB, free: 1.391 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004302/0.243, allocations: 218.5 kB / 407.8 MB, free: 1.18 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001918/0.2449, allocations: 1.349 MB / 409.1 MB, free: 15.73 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003414/0.2453, allocations: 170.5 kB / 409.3 MB, free: 15.55 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001731/0.2455, allocations: 92.81 kB / 409.4 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.027e-05/0.2455, allocations: 8 kB / 409.4 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003047/0.2458, allocations: 151.7 kB / 409.5 MB, free: 15.29 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.793e-06/0.2458, allocations: 0 / 409.5 MB, free: 15.29 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001141/0.247, allocations: 409.8 kB / 409.9 MB, free: 14.86 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.375e-05/0.2471, allocations: 110.8 kB / 410.1 MB, free: 14.73 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000268/0.2474, allocations: 254.7 kB / 410.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.741e-05/0.2474, allocations: 33.64 kB / 410.3 MB, free: 14.44 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001489/0.2475, allocations: 208.3 kB / 410.5 MB, free: 14.23 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.66e-05/0.2476, allocations: 87.3 kB / 410.6 MB, free: 14.14 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000101/0.2477, allocations: 58.03 kB / 410.7 MB, free: 14.08 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.2479, allocations: 334.8 kB / 411 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001742/0.2481, allocations: 84.61 kB / 411.1 MB, free: 13.66 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000298/0.2484, allocations: 173.5 kB / 411.3 MB, free: 13.45 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003846/0.2488, allocations: 236.2 kB / 411.5 MB, free: 13.18 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.2488, allocations: 4 kB / 411.5 MB, free: 13.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007325/0.2495, allocations: 344.3 kB / 411.8 MB, free: 12.83 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.2495, allocations: 12.33 kB / 411.8 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.052e-06/0.2496, allocations: 4 kB / 411.8 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002598/0.2498, allocations: 52.81 kB / 411.9 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002549/0.2501, allocations: 63.91 kB / 412 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00153/0.2516, allocations: 1.576 MB / 413.5 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000262/0.2519, allocations: 47.72 kB / 413.6 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.567e-05/0.2519, allocations: 12 kB / 413.6 MB, free: 10.93 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.000176/0.2521, allocations: 149.7 kB / 413.7 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.579e-05/0.2522, allocations: 39.73 kB / 413.8 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.273e-05/0.2522, allocations: 26.17 kB / 413.8 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.918e-06/0.2523, allocations: 8.062 kB / 413.8 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.2523, allocations: 0 / 413.8 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.2523, allocations: 3.984 kB / 413.8 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003721/0.2527, allocations: 333.4 kB / 414.1 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2527, allocations: 0 / 414.1 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001969/0.2529, allocations: 39.97 kB / 414.2 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001943/0.2531, allocations: 52.77 kB / 414.2 MB, free: 10.22 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.965e-05/0.2531, allocations: 7.984 kB / 414.2 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001271/0.2544, allocations: 1.418 MB / 415.7 MB, free: 8.656 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2544, allocations: 0 / 415.7 MB, free: 8.656 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007341/0.2551, allocations: 353.6 kB / 416 MB, free: 8.289 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001189/0.2553, allocations: 116.9 kB / 416.1 MB, free: 8.156 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.985e-05/0.2553, allocations: 8 kB / 416.1 MB, free: 8.148 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001836/0.2555, allocations: 23.97 kB / 416.1 MB, free: 8.125 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.982e-05/0.2556, allocations: 31.84 kB / 416.2 MB, free: 8.094 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.701e-05/0.2556, allocations: 7.984 kB / 416.2 MB, free: 8.086 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000211/0.2558, allocations: 186 kB / 416.4 MB, free: 7.902 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2558, allocations: 0 / 416.4 MB, free: 7.902 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003909/0.2562, allocations: 87.84 kB / 416.5 MB, free: 7.816 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.001105/0.2574, allocations: 0.8927 MB / 417.3 MB, free: 6.891 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006302/0.258, allocations: 310.4 kB / 417.6 MB, free: 6.574 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.258, allocations: 0 / 417.6 MB, free: 6.574 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000324/0.2583, allocations: 206.3 kB / 417.8 MB, free: 6.363 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002717/0.2586, allocations: 44.48 kB / 417.9 MB, free: 6.32 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004504/0.2631, allocations: 2.896 MB / 420.8 MB, free: 3.27 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004121/0.2636, allocations: 0.7716 MB / 421.6 MB, free: 2.473 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001218/0.2637, allocations: 30.27 kB / 421.6 MB, free: 2.441 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001437/0.2639, allocations: 95.41 kB / 421.7 MB, free: 2.348 MB / 334.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2639, allocations: 0 / 421.7 MB, free: 2.348 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04391/0.3078, allocations: 6.045 MB / 427.7 MB, free: 12.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/11.92, allocations: 9.219 kB / 427.7 MB, free: 12.47 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches