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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002079/0.002079, allocations: 108.2 kB / 21.18 MB, free: 0.7188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002255/0.002255, allocations: 216.7 kB / 24.49 MB, free: 4.09 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.72/1.72, allocations: 207.6 MB / 235.3 MB, free: 9.996 MB / 190.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001844/0.001844, allocations: 59.92 kB / 347.2 MB, free: 10.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4024/0.4042, allocations: 49.16 MB / 396.4 MB, free: 8.961 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004716/0.409, allocations: 3.112 MB / 399.5 MB, free: 6.793 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002102/0.4111, allocations: 0.7982 MB / 400.3 MB, free: 6.215 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003943/0.4115, allocations: 9.906 kB / 400.3 MB, free: 6.211 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002334/0.4117, allocations: 60.69 kB / 400.3 MB, free: 6.176 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002548/0.4119, allocations: 96.38 kB / 400.4 MB, free: 6.105 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004815/0.4124, allocations: 117.9 kB / 400.6 MB, free: 6.035 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000527/0.413, allocations: 425.9 kB / 401 MB, free: 5.82 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002418/0.4132, allocations: 110.6 kB / 401.1 MB, free: 5.746 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002421/0.4134, allocations: 168 kB / 401.2 MB, free: 5.668 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002592/0.4137, allocations: 165.7 kB / 401.4 MB, free: 5.586 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.28e-05/0.4138, allocations: 35.22 kB / 401.4 MB, free: 5.586 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.276e-05/0.4138, allocations: 38.5 kB / 401.5 MB, free: 5.582 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.154e-05/0.4139, allocations: 81.88 kB / 401.6 MB, free: 5.527 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001808/0.4141, allocations: 185 kB / 401.7 MB, free: 5.418 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005773/0.4147, allocations: 422.5 kB / 402.1 MB, free: 5.258 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.104e-06/0.4147, allocations: 5.156 kB / 402.2 MB, free: 5.254 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4147, allocations: 0 / 402.2 MB, free: 5.254 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.064e-05/0.4147, allocations: 0 / 402.2 MB, free: 5.254 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.001113/0.4158, allocations: 0.5851 MB / 402.7 MB, free: 4.816 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/0.4159, allocations: 17.48 kB / 402.8 MB, free: 4.809 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.97e-05/0.4159, allocations: 73.22 kB / 402.8 MB, free: 4.75 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.689e-05/0.416, allocations: 45.28 kB / 402.9 MB, free: 4.727 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000356/0.4164, allocations: 220.7 kB / 403.1 MB, free: 4.531 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.306e-05/0.4165, allocations: 130.5 kB / 403.2 MB, free: 4.395 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.512e-05/0.4165, allocations: 33.28 kB / 403.2 MB, free: 4.383 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005635/0.4171, allocations: 344.4 kB / 403.6 MB, free: 4.203 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.703e-05/0.4171, allocations: 5.156 kB / 403.6 MB, free: 4.199 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.148e-05/0.4171, allocations: 15.12 kB / 403.6 MB, free: 4.188 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.633e-05/0.4171, allocations: 8.969 kB / 403.6 MB, free: 4.188 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004353/0.4176, allocations: 214 kB / 403.8 MB, free: 4.121 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001778/0.4194, allocations: 1.318 MB / 405.1 MB, free: 3.133 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003342/0.4197, allocations: 167.3 kB / 405.3 MB, free: 3.047 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001629/0.4199, allocations: 85.02 kB / 405.4 MB, free: 3.008 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.288e-05/0.4199, allocations: 2.281 kB / 405.4 MB, free: 3.008 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003227/0.4202, allocations: 157.1 kB / 405.5 MB, free: 2.902 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.382e-06/0.4202, allocations: 0 / 405.5 MB, free: 2.902 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.00108/0.4213, allocations: 330.3 kB / 405.9 MB, free: 2.77 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.222e-05/0.4213, allocations: 107.1 kB / 406 MB, free: 2.645 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002673/0.4216, allocations: 257.8 kB / 406.2 MB, free: 2.492 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.199e-05/0.4216, allocations: 31.14 kB / 406.2 MB, free: 2.457 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.4218, allocations: 214 kB / 406.5 MB, free: 2.277 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.064e-05/0.4218, allocations: 67.47 kB / 406.5 MB, free: 2.227 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001096/0.4219, allocations: 70.44 kB / 406.6 MB, free: 2.18 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.219e-05/0.422, allocations: 335.2 kB / 406.9 MB, free: 1.859 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001623/0.4221, allocations: 77.84 kB / 407 MB, free: 1.832 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002035/0.4223, allocations: 185.3 kB / 407.2 MB, free: 1.676 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003245/0.4227, allocations: 230 kB / 407.4 MB, free: 1.508 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.4227, allocations: 1.219 kB / 407.4 MB, free: 1.508 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006955/0.4234, allocations: 344.1 kB / 407.7 MB, free: 1.352 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/0.4234, allocations: 11.09 kB / 407.7 MB, free: 1.348 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.393e-06/0.4234, allocations: 2.844 kB / 407.8 MB, free: 1.348 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002817/0.4237, allocations: 56.02 kB / 407.8 MB, free: 1.328 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002799/0.424, allocations: 64.19 kB / 407.9 MB, free: 1.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00113/0.4251, allocations: 1.465 MB / 409.3 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002907/0.4254, allocations: 50.7 kB / 409.4 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.859e-05/0.4254, allocations: 14.23 kB / 409.4 MB, free: 15.85 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.0001876/0.4256, allocations: 151.7 kB / 409.5 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.078e-05/0.4256, allocations: 33.5 kB / 409.6 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.284e-05/0.4257, allocations: 31.25 kB / 409.6 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.179e-06/0.4257, allocations: 2.75 kB / 409.6 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.4257, allocations: 0 / 409.6 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.4257, allocations: 5.266 kB / 409.6 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004417/0.4262, allocations: 310 kB / 409.9 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.4262, allocations: 2.078 kB / 409.9 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002009/0.4264, allocations: 38.39 kB / 410 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002061/0.4266, allocations: 50.09 kB / 410 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.118e-05/0.4266, allocations: 12.16 kB / 410 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001467/0.4281, allocations: 1.319 MB / 411.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.4281, allocations: 0 / 411.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000762/0.4288, allocations: 355.5 kB / 411.7 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001002/0.4289, allocations: 41.19 kB / 411.7 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.72e-05/0.429, allocations: 1.344 kB / 411.7 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001795/0.4292, allocations: 23.48 kB / 411.8 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001031/0.4293, allocations: 32.3 kB / 411.8 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.012e-05/0.4293, allocations: 9.797 kB / 411.8 MB, free: 13.88 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002156/0.4295, allocations: 181.4 kB / 412 MB, free: 13.77 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4295, allocations: 0 / 412 MB, free: 13.77 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004476/0.4299, allocations: 97.41 kB / 412.1 MB, free: 13.74 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.001173/0.4311, allocations: 0.8856 MB / 413 MB, free: 13.02 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007277/0.4318, allocations: 301.2 kB / 413.2 MB, free: 12.85 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.4318, allocations: 0 / 413.2 MB, free: 12.85 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003534/0.4322, allocations: 197.8 kB / 413.4 MB, free: 12.71 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002873/0.4325, allocations: 37.38 kB / 413.5 MB, free: 12.69 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005591/0.4381, allocations: 2.901 MB / 416.4 MB, free: 10.7 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005296/0.4386, allocations: 0.7751 MB / 417.1 MB, free: 9.988 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001299/0.4387, allocations: 28.67 kB / 417.2 MB, free: 9.969 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001506/0.4389, allocations: 99.5 kB / 417.3 MB, free: 9.887 MB / 334.1 MB Notification: Performance of SimCode: time 1.112e-06/0.4389, allocations: 0 / 417.3 MB, free: 9.887 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04823/0.4871, allocations: 6.279 MB / 423.6 MB, free: 6.57 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.93/13.42, allocations: 1.188 kB / 423.6 MB, free: 6.57 MB / 334.1 MB " [Timeout remaining time 646] (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 --stepSize=0.00025 --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) [Timeout 52.5] 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.969576081028208]