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.001119/0.001125, allocations: 88.19 kB / 16.65 MB, free: 6.535 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.001291/0.001292, allocations: 175.2 kB / 17.56 MB, free: 6.18 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.625/1.625, allocations: 223.3 MB / 241.6 MB, free: 188 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002723/0.0002724, allocations: 12 kB / 301.5 MB, free: 6.012 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0954/0.09569, allocations: 50.41 MB / 351.9 MB, free: 3.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003088/0.09882, allocations: 2.786 MB / 354.7 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001106/0.09995, allocations: 0.744 MB / 355.5 MB, free: 36 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001277/0.1001, allocations: 8 kB / 355.5 MB, free: 28 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001516/0.1003, allocations: 43.67 kB / 355.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001634/0.1004, allocations: 87.23 kB / 355.6 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002928/0.1007, allocations: 91.86 kB / 355.7 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003653/0.1011, allocations: 410.1 kB / 356.1 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002241/0.1013, allocations: 116.2 kB / 356.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001652/0.1015, allocations: 139.4 kB / 356.3 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000188/0.1017, allocations: 159.2 kB / 356.5 MB, free: 14.99 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.115e-05/0.1018, allocations: 20 kB / 356.5 MB, free: 14.97 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.281e-05/0.1018, allocations: 16 kB / 356.5 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.134e-05/0.1019, allocations: 59.77 kB / 356.6 MB, free: 14.9 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001714/0.102, allocations: 192.8 kB / 356.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003379/0.1024, allocations: 394.7 kB / 357.2 MB, free: 14.32 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.1024, allocations: 0 / 357.2 MB, free: 14.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.1024, allocations: 0 / 357.2 MB, free: 14.32 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.1024, allocations: 3.938 kB / 357.2 MB, free: 14.31 MB / 302.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.0009128/0.1033, allocations: 0.5964 MB / 357.8 MB, free: 13.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.1034, allocations: 16.03 kB / 357.8 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.567e-05/0.1035, allocations: 70.66 kB / 357.9 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.254e-05/0.1036, allocations: 44.47 kB / 357.9 MB, free: 13.53 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003064/0.1039, allocations: 281.2 kB / 358.2 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.179e-05/0.104, allocations: 76.62 kB / 358.3 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.73e-05/0.104, allocations: 32.38 kB / 358.3 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005418/0.1046, allocations: 342.7 kB / 358.6 MB, free: 12.74 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.295e-05/0.1046, allocations: 3.938 kB / 358.6 MB, free: 12.74 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.123e-05/0.1046, allocations: 12 kB / 358.6 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.002e-05/0.1046, allocations: 11.94 kB / 358.6 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004164/0.1051, allocations: 222.5 kB / 358.9 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001785/0.1069, allocations: 1.379 MB / 360.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003337/0.1072, allocations: 182.5 kB / 360.4 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001578/0.1074, allocations: 84.83 kB / 360.5 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.268e-05/0.1074, allocations: 4 kB / 360.5 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003168/0.1077, allocations: 165.1 kB / 360.7 MB, free: 10.56 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.453e-06/0.1077, allocations: 0 / 360.7 MB, free: 10.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001082/0.1088, allocations: 423 kB / 361.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.087e-05/0.1089, allocations: 102.8 kB / 361.2 MB, free: 9.992 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002423/0.1092, allocations: 262.6 kB / 361.4 MB, free: 9.73 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.52e-05/0.1092, allocations: 33.7 kB / 361.5 MB, free: 9.691 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001307/0.1093, allocations: 207.9 kB / 361.7 MB, free: 9.484 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.644e-05/0.1094, allocations: 71 kB / 361.7 MB, free: 9.414 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.531e-05/0.1094, allocations: 33.7 kB / 361.8 MB, free: 9.375 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.1096, allocations: 334.8 kB / 362.1 MB, free: 9.039 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000156/0.1097, allocations: 76.62 kB / 362.2 MB, free: 8.965 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002269/0.11, allocations: 185.5 kB / 362.4 MB, free: 8.738 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003437/0.1103, allocations: 240.5 kB / 362.6 MB, free: 8.469 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.1103, allocations: 0 / 362.6 MB, free: 8.469 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006826/0.111, allocations: 356.3 kB / 362.9 MB, free: 8.113 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.111, allocations: 4 kB / 362.9 MB, free: 8.109 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.1111, allocations: 7.938 kB / 363 MB, free: 8.102 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002474/0.1113, allocations: 60.97 kB / 363 MB, free: 8.039 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000254/0.1116, allocations: 63.91 kB / 363.1 MB, free: 7.977 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001215/0.1128, allocations: 1.404 MB / 364.5 MB, free: 6.441 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002444/0.1131, allocations: 51.8 kB / 364.5 MB, free: 6.391 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.185e-05/0.1131, allocations: 12 kB / 364.5 MB, free: 6.379 MB / 302.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.0001532/0.1133, allocations: 153.7 kB / 364.7 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.799e-05/0.1133, allocations: 27.7 kB / 364.7 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.86e-05/0.1133, allocations: 22.19 kB / 364.7 MB, free: 6.168 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.1134, allocations: 4 kB / 364.7 MB, free: 6.164 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.1134, allocations: 3.938 kB / 364.7 MB, free: 6.16 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.1134, allocations: 7.984 kB / 364.8 MB, free: 6.152 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003243/0.1137, allocations: 345.4 kB / 365.1 MB, free: 5.766 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1137, allocations: 0 / 365.1 MB, free: 5.766 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001806/0.1139, allocations: 39.91 kB / 365.1 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001749/0.1141, allocations: 56.81 kB / 365.2 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.625e-05/0.1141, allocations: 4 kB / 365.2 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001054/0.1152, allocations: 1.339 MB / 366.5 MB, free: 4.195 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1152, allocations: 0 / 366.5 MB, free: 4.195 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007181/0.1159, allocations: 354.9 kB / 366.9 MB, free: 3.828 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.264e-05/0.116, allocations: 124.6 kB / 367 MB, free: 3.688 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.567e-05/0.1161, allocations: 4 kB / 367 MB, free: 3.684 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001819/0.1162, allocations: 23.97 kB / 367 MB, free: 3.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.7e-05/0.1163, allocations: 32.02 kB / 367.1 MB, free: 3.629 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.315e-05/0.1164, allocations: 4 kB / 367.1 MB, free: 3.625 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000158/0.1165, allocations: 190 kB / 367.2 MB, free: 3.441 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1165, allocations: 0 / 367.2 MB, free: 3.441 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003668/0.1169, allocations: 83.84 kB / 367.3 MB, free: 3.359 MB / 302.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.0009894/0.1179, allocations: 0.9039 MB / 368.2 MB, free: 2.422 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005516/0.1185, allocations: 314.5 kB / 368.5 MB, free: 2.102 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.1185, allocations: 0 / 368.5 MB, free: 2.102 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002911/0.1188, allocations: 205.7 kB / 368.7 MB, free: 1.891 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002724/0.119, allocations: 35.86 kB / 368.8 MB, free: 1.855 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1594/0.2785, allocations: 3.088 MB / 371.9 MB, free: 23.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002233/0.2787, allocations: 0.7776 MB / 372.6 MB, free: 22.32 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000135/0.2789, allocations: 27.52 kB / 372.7 MB, free: 22.32 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001375/0.279, allocations: 93.11 kB / 372.8 MB, free: 22.31 MB / 302.1 MB Notification: Performance of SimCode: time 7.41e-07/0.279, allocations: 0 / 372.8 MB, free: 22.31 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01803/0.2971, allocations: 5.399 MB / 378.2 MB, free: 22.02 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001344/0.2972, allocations: 249.5 kB / 378.4 MB, free: 21.76 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.993/2.29, allocations: 3.828 kB / 378.4 MB, free: 21.76 MB / 302.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