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/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 3.2.3+maint.om/package.mo", uses=false) 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 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_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_3_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.001298/0.001298, allocations: 101.1 kB / 17.16 MB, free: 6.316 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.00145/0.001451, allocations: 190 kB / 18.07 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.452/1.452, allocations: 205.1 MB / 223.9 MB, free: 12.38 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001134/0.001134, allocations: 51.94 kB / 280.1 MB, free: 3.465 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09844/0.09959, allocations: 46.61 MB / 326.7 MB, free: 4.785 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004195/0.1038, allocations: 3.138 MB / 329.8 MB, free: 1.621 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001321/0.1052, allocations: 0.7799 MB / 330.6 MB, free: 0.832 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001497/0.1054, allocations: 11.88 kB / 330.6 MB, free: 0.8203 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001712/0.1055, allocations: 47.67 kB / 330.7 MB, free: 0.7734 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001784/0.1057, allocations: 79.31 kB / 330.7 MB, free: 0.6953 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003094/0.106, allocations: 99.84 kB / 330.8 MB, free: 0.5977 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000361/0.1064, allocations: 398.2 kB / 331.2 MB, free: 212 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002004/0.1066, allocations: 108.3 kB / 331.3 MB, free: 100 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001947/0.1068, allocations: 155.4 kB / 331.5 MB, free: 15.95 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001877/0.107, allocations: 167.2 kB / 331.7 MB, free: 15.78 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.32e-05/0.1071, allocations: 24 kB / 331.7 MB, free: 15.76 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.243e-05/0.1071, allocations: 24 kB / 331.7 MB, free: 15.73 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.838e-05/0.1072, allocations: 67.75 kB / 331.8 MB, free: 15.67 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001738/0.1074, allocations: 179.1 kB / 331.9 MB, free: 15.49 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003254/0.1077, allocations: 402.9 kB / 332.3 MB, free: 15.1 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1077, allocations: 0 / 332.3 MB, free: 15.1 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.12e-07/0.1077, allocations: 3.938 kB / 332.3 MB, free: 15.09 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.341e-06/0.1077, allocations: 0 / 332.3 MB, free: 15.09 MB / 286.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.0009129/0.1087, allocations: 0.6509 MB / 333 MB, free: 14.39 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.1087, allocations: 12.03 kB / 333 MB, free: 14.38 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.48e-05/0.1088, allocations: 66.72 kB / 333.1 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.381e-05/0.1089, allocations: 36.56 kB / 333.1 MB, free: 14.27 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002898/0.1092, allocations: 285.2 kB / 333.4 MB, free: 13.95 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.492e-05/0.1092, allocations: 84.56 kB / 333.5 MB, free: 13.86 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.332e-05/0.1093, allocations: 28.38 kB / 333.5 MB, free: 13.83 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005186/0.1098, allocations: 338.7 kB / 333.8 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.1098, allocations: 4 kB / 333.8 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.228e-05/0.1099, allocations: 15.98 kB / 333.8 MB, free: 13.46 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.733e-06/0.1099, allocations: 8 kB / 333.8 MB, free: 13.46 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003973/0.1103, allocations: 222.5 kB / 334.1 MB, free: 13.24 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001711/0.112, allocations: 1.364 MB / 335.4 MB, free: 11.77 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003046/0.1123, allocations: 178.4 kB / 335.6 MB, free: 11.59 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001534/0.1125, allocations: 92.86 kB / 335.7 MB, free: 11.5 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.924e-05/0.1125, allocations: 4 kB / 335.7 MB, free: 11.49 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003225/0.1128, allocations: 153.9 kB / 335.8 MB, free: 11.32 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.292e-06/0.1128, allocations: 0 / 335.8 MB, free: 11.32 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001038/0.1139, allocations: 403 kB / 336.2 MB, free: 10.9 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.872e-05/0.114, allocations: 110.8 kB / 336.4 MB, free: 10.77 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002332/0.1142, allocations: 258.6 kB / 336.6 MB, free: 10.51 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.362e-05/0.1142, allocations: 29.7 kB / 336.6 MB, free: 10.47 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001171/0.1144, allocations: 203.9 kB / 336.8 MB, free: 10.27 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.56e-05/0.1144, allocations: 74.98 kB / 336.9 MB, free: 10.2 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.911e-05/0.1145, allocations: 65.94 kB / 337 MB, free: 10.12 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.1146, allocations: 334.8 kB / 337.3 MB, free: 9.789 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001505/0.1148, allocations: 76.62 kB / 337.4 MB, free: 9.715 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002123/0.115, allocations: 181.5 kB / 337.5 MB, free: 9.496 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003439/0.1154, allocations: 247.5 kB / 337.8 MB, free: 9.219 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.1154, allocations: 4 kB / 337.8 MB, free: 9.215 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006468/0.116, allocations: 339.7 kB / 338.1 MB, free: 8.875 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.1161, allocations: 8 kB / 338.1 MB, free: 8.867 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.1161, allocations: 0 / 338.1 MB, free: 8.867 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000235/0.1163, allocations: 56.97 kB / 338.2 MB, free: 8.809 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002401/0.1166, allocations: 67.84 kB / 338.3 MB, free: 8.742 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001194/0.1178, allocations: 1.404 MB / 339.7 MB, free: 7.203 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000237/0.118, allocations: 43.67 kB / 339.7 MB, free: 7.16 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.155e-05/0.118, allocations: 12 kB / 339.7 MB, free: 7.148 MB / 286.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.0001574/0.1182, allocations: 152.8 kB / 339.9 MB, free: 6.992 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.668e-05/0.1182, allocations: 27.81 kB / 339.9 MB, free: 6.965 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.637e-05/0.1183, allocations: 34.17 kB / 339.9 MB, free: 6.934 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.808e-06/0.1183, allocations: 4 kB / 339.9 MB, free: 6.93 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.1183, allocations: 3.938 kB / 339.9 MB, free: 6.926 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.1183, allocations: 0 / 339.9 MB, free: 6.926 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003016/0.1186, allocations: 337.4 kB / 340.3 MB, free: 6.547 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.1186, allocations: 0 / 340.3 MB, free: 6.547 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001985/0.1188, allocations: 43.86 kB / 340.3 MB, free: 6.504 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001768/0.119, allocations: 56.8 kB / 340.4 MB, free: 6.445 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.818e-05/0.1191, allocations: 7.984 kB / 340.4 MB, free: 6.438 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001056/0.1201, allocations: 1.319 MB / 341.7 MB, free: 4.984 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.1201, allocations: 0 / 341.7 MB, free: 4.984 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006653/0.1208, allocations: 350.1 kB / 342 MB, free: 4.621 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.184e-05/0.1209, allocations: 124.7 kB / 342.2 MB, free: 4.48 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.674e-05/0.121, allocations: 4 kB / 342.2 MB, free: 4.477 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001692/0.1211, allocations: 19.98 kB / 342.2 MB, free: 4.457 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.87e-05/0.1212, allocations: 27.95 kB / 342.2 MB, free: 4.43 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.576e-05/0.1212, allocations: 7.984 kB / 342.2 MB, free: 4.422 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001638/0.1214, allocations: 186 kB / 342.4 MB, free: 4.238 MB / 286.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.1214, allocations: 0 / 342.4 MB, free: 4.238 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003663/0.1218, allocations: 87.84 kB / 342.5 MB, free: 4.152 MB / 286.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.001016/0.1228, allocations: 0.8899 MB / 343.4 MB, free: 3.23 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006323/0.1234, allocations: 314.6 kB / 343.7 MB, free: 2.91 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.604e-06/0.1235, allocations: 0 / 343.7 MB, free: 2.91 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002881/0.1238, allocations: 195.4 kB / 343.9 MB, free: 2.707 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002737/0.124, allocations: 36.55 kB / 343.9 MB, free: 2.672 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004094/0.1281, allocations: 3.044 MB / 346.9 MB, free: 15.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002986/0.1285, allocations: 0.7714 MB / 347.7 MB, free: 14.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001264/0.1286, allocations: 30.22 kB / 347.7 MB, free: 14.64 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001313/0.1287, allocations: 91.41 kB / 347.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of SimCode: time 6.61e-07/0.1287, allocations: 0 / 347.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02275/0.1515, allocations: 5.498 MB / 353.3 MB, free: 9.023 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002259/0.1518, allocations: 245.3 kB / 353.6 MB, free: 8.766 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.034/2.186, allocations: 0 / 353.6 MB, free: 8.766 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/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