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.001571/0.001571, allocations: 108.4 kB / 16.51 MB, free: 6.707 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.002016/0.002016, allocations: 194.5 kB / 17.43 MB, free: 6.066 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.527/1.527, allocations: 222.9 MB / 241.1 MB, free: 15.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001016/0.001016, allocations: 48.23 kB / 300.1 MB, free: 6.227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1054, allocations: 49.44 MB / 349.5 MB, free: 4.777 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.00504/0.1105, allocations: 3.169 MB / 352.7 MB, free: 1.586 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001341/0.1119, allocations: 0.7517 MB / 353.4 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001451/0.112, allocations: 8 kB / 353.4 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001857/0.1122, allocations: 43.61 kB / 353.5 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001665/0.1124, allocations: 87.3 kB / 353.6 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003299/0.1127, allocations: 95.84 kB / 353.7 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003745/0.1131, allocations: 394.2 kB / 354 MB, free: 216 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002514/0.1134, allocations: 120.2 kB / 354.2 MB, free: 88 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001932/0.1136, allocations: 143.5 kB / 354.3 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001988/0.1138, allocations: 175.1 kB / 354.5 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.061e-05/0.1138, allocations: 27.94 kB / 354.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.563e-05/0.1139, allocations: 24 kB / 354.5 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.566e-05/0.114, allocations: 63.77 kB / 354.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001681/0.1142, allocations: 183.1 kB / 354.8 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003706/0.1145, allocations: 402.8 kB / 355.2 MB, free: 15.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.1145, allocations: 0 / 355.2 MB, free: 15.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.82e-07/0.1146, allocations: 0 / 355.2 MB, free: 15.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.1146, allocations: 4 kB / 355.2 MB, free: 15.08 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.001073/0.1156, allocations: 0.647 MB / 355.8 MB, free: 14.38 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.1157, allocations: 12.03 kB / 355.8 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.073e-05/0.1158, allocations: 74.72 kB / 355.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.002e-05/0.1159, allocations: 44.47 kB / 355.9 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003448/0.1162, allocations: 277.2 kB / 356.2 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.531e-05/0.1163, allocations: 76.62 kB / 356.3 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.269e-05/0.1164, allocations: 32.38 kB / 356.3 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005616/0.117, allocations: 342.7 kB / 356.6 MB, free: 13.47 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.117, allocations: 0 / 356.6 MB, free: 13.47 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.584e-05/0.117, allocations: 19.97 kB / 356.7 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.869e-06/0.117, allocations: 8 kB / 356.7 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004348/0.1175, allocations: 222.4 kB / 356.9 MB, free: 13.22 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001868/0.1194, allocations: 1.36 MB / 358.2 MB, free: 11.76 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003379/0.1197, allocations: 170.5 kB / 358.4 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000175/0.1199, allocations: 95.27 kB / 358.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.272e-05/0.1199, allocations: 0 / 358.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003287/0.1203, allocations: 157.8 kB / 358.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.303e-06/0.1203, allocations: 0 / 358.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001112/0.1214, allocations: 405.1 kB / 359.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.469e-05/0.1215, allocations: 110.8 kB / 359.2 MB, free: 10.76 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002989/0.1218, allocations: 262.7 kB / 359.4 MB, free: 10.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.603e-05/0.1218, allocations: 29.7 kB / 359.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002163/0.122, allocations: 211.8 kB / 359.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.566e-05/0.1221, allocations: 71.08 kB / 359.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001875/0.1223, allocations: 61.94 kB / 359.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.1224, allocations: 342.8 kB / 360.1 MB, free: 9.773 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001571/0.1226, allocations: 72.62 kB / 360.2 MB, free: 9.703 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002178/0.1228, allocations: 177.5 kB / 360.4 MB, free: 9.484 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003368/0.1232, allocations: 243.5 kB / 360.6 MB, free: 9.211 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.1232, allocations: 4 kB / 360.6 MB, free: 9.207 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000711/0.1239, allocations: 332.5 kB / 360.9 MB, free: 8.875 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.1239, allocations: 12.03 kB / 360.9 MB, free: 8.863 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.1239, allocations: 4 kB / 360.9 MB, free: 8.859 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002701/0.1242, allocations: 52.81 kB / 361 MB, free: 8.805 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002475/0.1245, allocations: 59.91 kB / 361.1 MB, free: 8.746 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001278/0.1258, allocations: 1.408 MB / 362.5 MB, free: 7.207 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002366/0.126, allocations: 47.83 kB / 362.5 MB, free: 7.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.276e-05/0.126, allocations: 12 kB / 362.5 MB, free: 7.148 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.000158/0.1262, allocations: 156.2 kB / 362.7 MB, free: 6.988 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.827e-05/0.1262, allocations: 31.62 kB / 362.7 MB, free: 6.957 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.786e-05/0.1263, allocations: 30.17 kB / 362.7 MB, free: 6.926 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.1263, allocations: 4 kB / 362.7 MB, free: 6.922 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.1263, allocations: 7.938 kB / 362.7 MB, free: 6.914 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.1263, allocations: 4 kB / 362.8 MB, free: 6.91 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003294/0.1267, allocations: 333.5 kB / 363.1 MB, free: 6.535 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1267, allocations: 0 / 363.1 MB, free: 6.535 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001855/0.1269, allocations: 31.98 kB / 363.1 MB, free: 6.504 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001855/0.1271, allocations: 60.75 kB / 363.2 MB, free: 6.441 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.75e-05/0.1271, allocations: 3.984 kB / 363.2 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001087/0.1282, allocations: 1.319 MB / 364.5 MB, free: 4.988 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.1282, allocations: 3.938 kB / 364.5 MB, free: 4.984 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007118/0.1289, allocations: 353.3 kB / 364.8 MB, free: 4.617 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001013/0.129, allocations: 116.8 kB / 365 MB, free: 4.484 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.012e-05/0.1291, allocations: 12.16 kB / 365 MB, free: 4.473 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001879/0.1293, allocations: 15.92 kB / 365 MB, free: 4.457 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.916e-05/0.1294, allocations: 27.95 kB / 365 MB, free: 4.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.737e-05/0.1294, allocations: 11.98 kB / 365 MB, free: 4.418 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001742/0.1296, allocations: 182 kB / 365.2 MB, free: 4.242 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1296, allocations: 0 / 365.2 MB, free: 4.242 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003774/0.13, allocations: 83.84 kB / 365.3 MB, free: 4.16 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.00107/0.131, allocations: 0.8929 MB / 366.2 MB, free: 3.234 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006089/0.1317, allocations: 322.4 kB / 366.5 MB, free: 2.906 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.1317, allocations: 0 / 366.5 MB, free: 2.906 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003045/0.132, allocations: 194.6 kB / 366.7 MB, free: 2.703 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002956/0.1323, allocations: 33.84 kB / 366.7 MB, free: 2.668 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1785/0.3108, allocations: 3.011 MB / 369.7 MB, free: 24.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000306/0.3112, allocations: 0.7743 MB / 370.5 MB, free: 24.07 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002019/0.3114, allocations: 25.86 kB / 370.5 MB, free: 24.07 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001543/0.3116, allocations: 95.09 kB / 370.6 MB, free: 24.07 MB / 302.1 MB Notification: Performance of SimCode: time 1.042e-06/0.3116, allocations: 0 / 370.6 MB, free: 24.07 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02098/0.3326, allocations: 5.507 MB / 376.1 MB, free: 23.68 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002348/0.3328, allocations: 250.3 kB / 376.4 MB, free: 23.43 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.055/2.388, allocations: 1.375 kB / 376.4 MB, free: 23.43 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